R Programming
文章平均质量分 54
naturalconan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
R Programming Note 2
1. Reading Data read.table (If large dataset, provide colClasses and nrows) read.csv readLines source dget load unserialize 2. File Connections str(file) - r - w - a - rb, wb, ab co原创 2015-01-07 16:50:06 · 346 阅读 · 0 评论 -
R Programming Note 1
1. Input and Evaluation assign: x comment: # x print: print(x) 2. Objects and Attributes objects: - character - numeric - integer - complex - logical vector- objects of same classes: x原创 2015-01-06 16:57:51 · 344 阅读 · 0 评论 -
R Programming Note 5
1.str function structure of the object 2. Simulation d for density r for random number generation p for cumulative distribution q for quantile function dnorm(x, mean = 0, sd = 1, log =原创 2015-01-28 18:13:20 · 307 阅读 · 0 评论 -
R Programming Note 3
1. If-else y 3){ 10 }else{ 0 } 2. for x for(i in 1:4) { print(x[i]) } for(i in seq_along(x)){ print(x[i]) } for(letter in x){ print(letter) } 3. while count while(count原创 2015-01-12 12:57:22 · 406 阅读 · 0 评论 -
R Programming Note 4
Loop Function: lapply - loop the list and evaluate a function on each element always return a list sapply - simplify the result same as lapply apply: over the margins of an array(dimension) tapply原创 2015-01-23 14:34:31 · 324 阅读 · 0 评论
分享