- 提取变量名
Get the names of all variables in the dataset
names(mtcars)
> names(mtcars)
[1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear"
[11] "carb"
Get the names of all variables in the dataset
names(mtcars)
> names(mtcars)
[1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear"
[11] "carb"
本文标题:R 函数学习 - names()
本文链接:https://www.haomeiwen.com/subject/ygfiihtx.html
网友评论