Adding multiple vectors in R
Posted
by Elais
on Stack Overflow
See other posts from Stack Overflow
or by Elais
Published on 2010-03-16T17:34:44Z
Indexed on
2010/03/17
8:41 UTC
Read the original article
Hit count: 598
I have a problem where I have to add thirty-three integer vectors of equal length from a dataset in R. I know the simple solution would be
Vector1 + Vector2 + Vector3 +VectorN
But I am sure there is a way to code this. Also some vectors have NA in place of integers so I need a way to skip those. I know this may be very basic but I am new to this.
© Stack Overflow or respective owner