R 函数学习 - names()
2020-04-22 本文已影响0人
Thinkando
- 提取变量名
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"