subset関数
subset(元のデータフレーム、select=抜き出す列)
> d0
Age BW Sex
1 60 66 M
2 70 57 F
3 65 78 F
4 23 88 M
5 66 90 M
6 77 57 M
>subset(d0,select=BW)
BW
1 66
2 57
3 78
4 88
5 90
6 57
>
More than 5 years have passed since last update.
subset関数
subset(元のデータフレーム、select=抜き出す列)
> d0
Age BW Sex
1 60 66 M
2 70 57 F
3 65 78 F
4 23 88 M
5 66 90 M
6 77 57 M
>subset(d0,select=BW)
BW
1 66
2 57
3 78
4 88
5 90
6 57
>
Register as a new user and use Qiita more conveniently