Re: [R] Time Series smoothing

2009-08-06 Thread voidobscura
c. > > Giovanni Petris > >> Date: Thu, 06 Aug 2009 11:33:58 -0700 (PDT) >> From: voidobscura >> Sender: r-help-boun...@r-project.org >> Precedence: list >> >> >> I have a set of data (in a matrix). I spliced a column out and parsed it >>

[R] filter function for time series

2009-08-06 Thread voidobscura
Hi all, I just need help understanding the filter function. I've seen how to use it to smooth a time series, but how do you know which is a good smoothing? Also, I have seen people do things like x1 = filter(x,filter=rep(1/5,5)) or x2 = filter(x,filter=rep(1/10,10)). I know that rep creates a

[R] Time Series smoothing

2009-08-06 Thread voidobscura
I have a set of data (in a matrix). I spliced a column out and parsed it as.ts (time series). I then plotted the time series but I found that it was very noisy. I wanted to smooth it out. However, I am having some problems smoothing and plotting the smoothed version. > A <- as.ts(read.table

[R] Check functions in package

2009-07-28 Thread voidobscura
Hi, I run R on a server via SSH, over a terminal. After loading a specific package, how do I know what functions are in that package? Is there any way to list or display them? tia. -- View this message in context: http://www.nabble.com/Check-functions-in-package-tp24707084p24707084.html Sent

[R] dataframe to list conversion

2009-07-27 Thread voidobscura
Hi all, I have been experimenting with writing my own matrix column sum function. I want it to return a list. csum<-function(m) { a = data.frame(m) s = lapply(a,sum) return(s) } I wish to use the same code up until the return(s) that I have listed above. The problem is that s,

[R] DataFrame help

2009-07-16 Thread voidobscura
Alright, so I am trying to write my own function to calculate column sums in a matrix. I want the result as a single list with the values. So far I have: csum<-function(m) { a = data.frame(m) s = lapply(a,sum) return(s) } What is the easiest way to have it return in a f

[R] Problems with lists...

2009-07-16 Thread voidobscura
> a [[1]] [1] 1 2 3 [[2]] [1] 4 5 6 [[3]] [1] 7 8 9 I need to access individual elements, such as the 5 or the 9. Can anyone please tell me the syntax to do this? tia -- View this message in context: http://www.nabble.com/Problems-with-lists...-tp24519517p24519517.html Sent from the R help