2012-08-15 データフレームのソート R # データフレームの並べ替え # データフレームmtcarsをmpgで並べ替え head(mtcars) newdata <- mtcars[order(mtcars$mpg),] head(newdata)