Thanks Jorge
It works great. I solved it by using loop, but i like your way better.
Thanks again
Cameron
--
View this message in context:
http://r.789695.n4.nabble.com/RowSums-Question-tp3049261p3049682.html
Sent from the R help mailing list archive at Nabble.com.
Hi Cameron,
May be this (untested)?
rowSums(is.na(tsObj), na.rm = TRUE)
HTH,
Jorge
On Thu, Nov 18, 2010 at 2:38 PM, cameron <> wrote:
>
> thanks Henrique
>
> I have another question.
>
> Lets say i have a timeSeries table
>AB C
> 1/1/90 NA 1 2
> 1/2/90
thanks Henrique
I have another question.
Lets say i have a timeSeries table
AB C
1/1/90 NA 1 2
1/2/90 NA 1 1
1/3/90 NA 1 -1
1/4/90 NA -1 1
1/5/901 1 1
1/6/901 51 1
I want to
Try this:
rowSums(tsObj, na.rm = TRUE)
On Thu, Nov 18, 2010 at 3:58 PM, cameron wrote:
>
>
> I have a question on RowSums.
>
> Lets say i have a timeSeries table
>A B C
> 1/1/90 NA 1 1
> 1/2/90 NA 1 1
> 1/3/90 NA 1 1
> 1/4/90 NA 1
I have a question on RowSums.
Lets say i have a timeSeries table
A B C
1/1/90 NA 1 1
1/2/90 NA 1 1
1/3/90 NA 1 1
1/4/90 NA 1 1
1/5/901 1 1
1/6/901 1 1
if i use RowSums, i will get
1/5/903
1/
5 matches
Mail list logo