/tmp/data.txt
2000 2001 2002 2003 2004
9.34 8.50 7.62 6.93 6.60
clear data rm(list=ls(all=TRUE))
read from file da <- data.txt
read.table tmp
row da[1,]
column da[1]
run script source("/tmp/sc.r")
write to file write.table(year,file="/tmp/year.txt",col.names=F,row.names=F)
install package from CRAN install.packages("name")
install car package for old ubuntu sudo apt-get install r-cran-car
linear regression
blogger ruined my post!!!! *A*
No comments:
Post a Comment