老师,您好~ 我有一个大的数据集,1886行 67列, 想要把里面36列数值型的变量标准化为mean=0 var=1.
我用的代码是: music.std=music-colmeans(music)
apply(music,2,"var")
但是出现错误报告 说colmeans函数不存在
麻烦老师帮我看看有什么错误么?把37列变量标准化要怎么做呢?
谢谢老师啦!
|
楼主: 快乐女神
|
2681
1
[Splus与R初级班] 变量标准化 |
|
高中生 85%
-
|
| ||
|
|
| ||
|
R is the second language for me!Using R is standing on the shoulders of giants! Let\'s use R together!
|
||
加好友,备注jltj京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


