- 4
- 0
- 约2.86万字
- 约 4页
- 2017-06-26 发布于河北
- 举报
R参考卡片(Liu-R-refcard)
R ÎÎÎkkk°°° ^ comment.char= ìé # )è5; ¶^ skip=n 3 rbind(...) r ±1/™|‹›, Í‚µ, Ÿ¶
÷Í‚caLn 1; ç[Ñêœu1,NA ?n, ⁄Ÿ¶ cbind(...) ”˛. ±/™
©(=©) d Tom Short tshort@eprisolutions. read.csv(filename,header=TRUE) ”˛, %@òè÷ ÍÍÍ‚‚‚©©©⁄⁄⁄¿¿¿
com ß\å ±3www.R ˛Å#©. csv ©á (Comma Separated values) ï˛¢⁄
•©á © ( ƺTom Short Ä»Nå) ( read.delim(filename,header=TRUE) ”˛, %@òè÷ x[n] 1n áÉ
˛”á aq ߤ‹V\ eZ~^-Y? tab ©©á x[-n] ÿ1n áÉx
æ±9ëod4g) KIßXkÔ¶ØûÈ X read.fwf(file,widths,header=F,sep=t,as.is=FALSE) x[1:n] c n áÉ
eá sunbjt@ êÃê ±f ixed width f ormatted /™÷Í‚ñÍ‚µ; widths ¥Í x[-(1:n)] 1n+1 ñÅÉ
•©áµ2008 c8 3 F?æ ï˛, ^uòN›i„ x[c(1,4,2)] çÉ
save(file,...) ±ÿ©?õçÈñ
x[name] èname É
save.image(file) §kÈñ
x[x 3] §kåu 3 É
dump(x,...) ÚÈñ x 3“...” p
x[x 3 x 5] ´m (3,5) É
êêꜜœ⁄⁄⁄ƒƒƒ::: cat(..., file=, sep= ) rõ=zèiŒã ÈñD x[x %in% c(a,and,the)] â|•É
ä; sep èÈñDä
原创力文档

文档评论(0)