[R] rnorm using vector of means and SDs

2010-09-14 Thread J.K. Bruxer
Hi, I want to sample from a distribution (say a normal distribution, for example) using vectors of the different parameters (i.e. the mean and standard deviation). That is, I have a list/vector of say 100 means and another of the corresponding 100 SD's, and I want a matrix of 100 rows (one for

Re: [R] shift/lag when merge zoo

2009-04-16 Thread j.k
Worked perfect... Thanks a lot! Johannes j.k wrote: > > Hello alltogheter, > I have a little problem regarding merging to zoo series. > I want to merge two zoo series to reduce the timegaps between the stamps. > I use the following code: > > data.test <- > as.P

[R] shift/lag when merge zoo

2009-04-15 Thread j.k
Hello alltogheter, I have a little problem regarding merging to zoo series. I want to merge two zoo series to reduce the timegaps between the stamps. I use the following code: data.test <- as.POSIXct(seq(data.input01[1,1],data.input01[nrow(data.input01),1],900),tz="GMT") data.troughput01 <- as.zo

Re: [R] Install odfWeave on Ubuntu 8.10 Intrepid Ibex

2009-04-11 Thread j.k
I've already found the solution myself: the package "odfWeave" depends on package "XML" to configure the package "XML" the libxml2-devel package in ubuntu is needed. You get that with typing in the console: sudo apt-get install libxml2-devel j.k wrote: &g

[R] Install odfWeave on Ubuntu 8.10 Intrepid Ibex

2009-04-11 Thread j.k
Hello togheter, I've installed R with this instruction: http://edtechdev.blogspot.com/2009/03/r-in-ubuntu-intrepid.html After that I tried to install odfWeave with this: > install.packages("odfWeave") Then there came this warning: Warnung in install.packages("odfWeave") : Argument 'lib' missi

Re: [R] Add missing values/timestamps

2009-04-03 Thread j.k
ge(z, zoo(, tt)) > 2008-10-14 08:45:00 2008-10-14 08:50:00 2008-10-14 08:55:00 2008-10-14 > 09:00:00 >94411.0890745.4582963.35 > 75684.38 > 2008-10-14 09:05:00 2008-10-14 09:10:00 2008-10-14 09:15:00 2008-10-14 > 09:20:00 >78931.82

[R] Add missing values/timestamps

2009-03-30 Thread j.k
Hello alltogheter, I have the following problem and maybe someone can help me with it. I have a list of values with times. They look like that: V1 V2 1 2008-10-14 08:45:00 94411.08 2 2008-10-14 08:50:00 90745.45 3 2008-10-14 08:55:00 82963.35 4 2008-10-14

Re: [R] Sort by timestamp

2009-03-27 Thread j.k
?POSIXct > > class(df$V1) # is a POSIX time now > > df2 <- df[do.call(order, df), ] # see ?order > > df2 # sorted in a way you like > > > Cheers, Arien > > > On Thu, March 26, 2009 08:54, j.k wrote: >> >> #Good morning alltogheter.

[R] Sort by timestamp

2009-03-26 Thread j.k
#Good morning alltogheter. I'm using R for a short time to analyse TimeSeries and I have the following Problem: #I have a bunch of Time Series: #First of all I import them from a txt File data.input01 <-read.csv("./LD/20081030.txt", header = TRUE, sep = ";", quote="\"", dec=",", fill = TRUE, comm