x <- as.matrix(x);m <- nrow(x)
x是输入的数据矩阵,m为数据矩阵的行数
centers <- x[sample(1 : m, k), , drop = FALSE],这句话什么意思?
谢谢,求达人指教。
|
楼主: tchenyunt
|
2473
3
[求助]这段R语言什么意思? |
|
高中生 2%
-
|
本帖被以下文库推荐
| ||
|
|
| ||
|
R is the second language for me!Using R is standing on the shoulders of giants! Let\'s use R together!
|
||
| ||
|
R is the second language for me!Using R is standing on the shoulders of giants! Let\'s use R together!
|
||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


