Cookbook for R-基础(翻译笔记)

原书网址
no.1

R环境

1.安装导入包

安装

install.packages('reshape2')

该安装方法仅适用于发布在cran上的包。
安装bioconductor上的安装包:

source("https://bioconductor.org/biocLite.R")
biocLite()
biocLite("BiocUpgrade") 

安装github上的安装包(svn,bitbucket,git,用devtools::install_这个就好了):

install.packages("devtools")
devtools::install_github('用户名/项目名')

升级包
update.packages()

R更新,当遇到相同文件时选择跳过,否则新版本的更新会被老版本替代:

install.packages("installr")
library(devtools)
library(installr) 
check.for.updates.R()
installr()
copy.packages.between.libraries()

升级之后更新包,可以使用y叔的rvcheck包,更新CRAN, Bioconductor和Github上的R包:

rvcheck::update_all()
还有一些其他包,安装步骤不一致,当遇到问题时,推荐搜到这个包的发布网址,会有说明文档介绍如何安装。当然也可以咨询我。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
With more than 200 practical recipes, this book helps you perform data analysis with R quickly and efficiently. The R language provides everything you need to do statistical work, but its structure can be difficult to master. This collection of concise, task-oriented recipes makes you productive with R immediately, with solutions ranging from basic tasks to input and output, general statistics, graphics, and linear regression. Each recipe addresses a specific problem, with a discussion that explains the solution and offers insight into how it works. If you're a beginner, R Cookbook will help get you started. If you're an experienced data programmer, it will jog your memory and expand your horizons. You'll get the job done faster and learn more about R in the process. * Create vectors, handle variables, and perform other basic functions * Input and output data * Tackle data structures such as matrices, lists, factors, and data frames * Work with probability, probability distributions, and random variables * Calculate statistics and confidence intervals, and perform statistical tests * Create a variety of graphic displays * Build statistical models with linear regressions and analysis of variance (ANOVA) * Explore advanced statistical techniques, such as finding clusters in your data 'Wonderfully readable, R Cookbook serves not only as a solutions manual of sorts, but as a truly enjoyable way to explore the R language-one practical example at a time.' -Jeffrey Ryan, software consultant and R package author

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值