What is the class of the object defined by the expression x<- c(4,"a",TRUE) in R?--- CharacterWhat would be the output of the following code ? x <- c("a", "b", "c", "c", "d","a") x[c(1, 3, 4)]--- a c c
Which command allows you to get the median tree Height of the R sample dataset "trees"--- mean(trees$Height)Suppose I have a vector x <- c(3,5,1,10,12,6) and I want to set all elements of this vector that are less than 6 to be equal to zero, what R code achieves this ?
Which function can be used to create collection of vectors objects?
If I have two vectors, x<-c(1,3,5) and y<-c(3,2,10), what does rbind(x,y) give ?