首页 > 其他 > 详细

Useful R functions

时间:2015-01-25 08:40:27      阅读:219      评论:0      收藏:0      [点我收藏+]

Random Samples and Permutations

sample(x, size, replace = FALSE, prob = NULL) 
sample.int(n, size = n, replace = FALSE, prob = NULL)

 

Samples in Normal Distribution

rnorm(n, mean = 0, sd = 1)

 

Generate Factor Levels

gl(n, k, length = n*k, labels = seq_len(n), ordered = FALSE)

 

Useful R functions

原文:http://www.cnblogs.com/nicebear/p/4247727.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!