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
>>
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
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
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
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,
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
> 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
7 matches
Mail list logo