mode関数 R言語 変数型を返す。 > x <- c(1, 2, 3) > mode(x) [1] "numeric" > y <- "Hello" > mode(y) [1] "character"