[R] how to get growth rate of a (time series) data?

2013-06-19 Thread Yanyuan Zhu
Hello all, now I'm trying to switch from Excel to R to deal with the data, and as a newbie i got the problem as follows. suppose I have a data named "test" test<- data.frame(year=c(1996:2011), Y=c(74163.6,81658.5,86531.6,91125.0,98749.0,109028.0,120475.6,136613.4,160956.6,187423.5,222712.5,266599.

[R] an entry level (stupid) question

2012-12-20 Thread Yanyuan Zhu
Hello all, i'm a newbie to R and now I get stuck by the question, would anybody help me please? Suppose, I got the following > test <- data.frame(test1=c(c(0.00, 0.005, 0.01, 0.015, 0.02))) > test test1 1 0.000 2 0.005 3 0.010 4 0.015 5 0.020 Now I want another column inside test, named test2

[R] an entry level (stupid) question

2012-12-20 Thread Yanyuan Zhu
Hello all, i'm a newbie to R and now I get stuck by the question, would anybody help me please? Suppose, I got the following > test <- data.frame(test1=c(c(0.00, 0.005, 0.01, 0.015, 0.02))) > test test1 1 0.000 2 0.005 3 0.010 4 0.015 5 0.020 Now I want another column inside test, named test2

Re: [R] I can not install DAAG package . help

2009-10-09 Thread Yanyuan Zhu
"randomForest") : installation of package 'randomForest' had non-zero exit status so what should i do ? thanks -- Forwarded message -- From: joris meys Date: Thu, Oct 8, 2009 at 8:25 PM Subject: Re: [R] I can not install DAAG package . help To: Yanyuan Zhu

Re: [R] I can not install DAAG package . help

2009-10-09 Thread Yanyuan Zhu
ld i do about it ? thanks On Thu, Oct 8, 2009 at 8:53 PM, David Winsemius wrote: > > On Oct 8, 2009, at 4:27 AM, Yanyuan Zhu wrote: > > I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude >> install" >> way >> > > The is an R-SIG-Debian w

[R] I can not install DAAG package . help

2009-10-08 Thread Yanyuan Zhu
quot; Execution halted The downloaded packages are in ‘/tmp/Rtmp7w4WPA/downloaded_packages’ Warning messages: 1: In install.packages("DAAG") : installation of package 'randomForest' had non-zero exit status 2: In install.packages("DAAG") : installation of pa