Re: [R] add values inside vector

2009-06-01 Thread Grześ
Yes it's sum. Thanks. I forgot about this function. Henrique Dallazuanna wrote: > > Use sum: > > sum(vec) > > On Mon, Jun 1, 2009 at 7:15 AM, Grze¶ wrote: > >> >> I think it's easy problem but I can't find solution. >> >> I have a vector: >> >> vec <- c (23.4, 3.0, 14.7, 7.7) >> >> and I w

Re: [R] add values inside vector

2009-06-01 Thread Henrique Dallazuanna
Use sum: sum(vec) On Mon, Jun 1, 2009 at 7:15 AM, Grze¶ wrote: > > I think it's easy problem but I can't find solution. > > I have a vector: > > vec <- c (23.4, 3.0, 14.7, 7.7) > > and I would like to add all values which are inside my vector to each > other. > > as a result a want to get one

Re: [R] add values inside vector

2009-06-01 Thread jim holtman
?sum On Mon, Jun 1, 2009 at 6:15 AM, Grze¶ wrote: > > I think it's easy problem but I can't find solution. > > I have a vector: > > vec <- c (23.4, 3.0, 14.7, 7.7) > > and I would like to add all values which are inside my vector to each > other. > > as a result a want to get one value like su

[R] add values inside vector

2009-06-01 Thread Grześ
I think it's easy problem but I can't find solution. I have a vector: vec <- c (23.4, 3.0, 14.7, 7.7) and I would like to add all values which are inside my vector to each other. as a result a want to get one value like sum all values from my vector- sth=(23.4 + 3.0 + 14.7 + 7.7) PS. I us