其它统计软件来源的文件
读取其它统计软件来源的文件,使用foreign库,例,
> library(foreign)
> data(swiss)
> swissfile <- tempfile()
> write.dta(swiss, swissfile)
> dat <- read.dta(swissfile)
> head(dat)
## Fertility Agriculture Examination Education Catholic Infant_Mortality
## 1 80.2 17.0 15 12 9.96 22.2
## 2 83.1 45.1 6 9 84.84 22.2
## 3 92.5 39.7 5 5 93.40 20.2
## 4 85.8 36.5 12 7 33.77 20.3
## 5 76.9 43.5 17 15 5.16 20.6
## 6 76.1 35.3 9 7 90.57 26.6
您好:我想请教您怎么能从零基础学好R并应用于生物信息学中?我自己看了很久收获特别少
无它,唯手熟尔。