I started learning R a couple of weeks ago, so I'm still very very new to R coding; I was trying to order a dataframe numerically, but on top of the ordered dataframe, resulted from the execution of the function order(nameofthedataframe), it appears "Warning in xtfrm.data.frame(x) : cannot xtfrm data frames". Could please anyone tell me what did I do wrong?
Thank you very much!
Examples:
order(iris[,"Petal.Width"]) # this seems fine
order(iris[,"Petal.Width",drop=FALSE]) # warning
order(iris[,c("Petal.Width","Sepal.Width")]) # warning
R version 4.1.0