Coggle requires JavaScript to display documents.
is.function(ชื่อฟังก์ชัน)X 1 4 7 Y 2 5 8 Z 3 6 9 > is.matrix(x)[1] TRUE
is.matrix (ชื่อตัวแปร)ตัวอย่างเช่นx <- matrix(1:9, nrow = 3, dimnames = list(c("X","Y","Z"), c(“A","B","C"))) > xA B C
Y=10typeof(Y)[1] "double"C<- as.character(Y)typeof(C)[1] "character"
as.integer (ชื่อตัวแปร) ตัวอย่างเช่น > Y=10 > C<-as.character(Y) > typeof(C) [1] "character"Z=as.integer(C) > typeof(Z)[1] "integer"
X=as.double(Y)typeof(X)[1] "double"
typeof(I) [1] "double"is.numeric(I) [1] TRUE
7+7/7+7*7-7 =? คำตอบ คือ 50