[R] add values inside vector
Grześ
gregorio99 at gmail.com
Mon Jun 1 12:15:32 CEST 2009
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 usually don't know how long is my vector in my function
--
View this message in context: http://www.nabble.com/add-values-inside-vector-tp23812292p23812292.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list