search for: ptsv1

Displaying 1 result from an estimated 1 matches for "ptsv1".

Did you mean: pts1
2012 Apr 09
2
return one vector that is the sum of a list of vectors
...sums. For example, given list("jtsv", "ptsv") and c(1:10), where jtsv1, etc, are all numeric vectors of the same length, the function should return a list of jtsv and ptsv, where jtsv <- jtsv1 + jtsv2 + jtsv3 + jtsv4 + jtsv5 + jtsv6 + jtsv7 + jtsv8 + jtsv9 + jtsv10 ptsv <- ptsv1 + ptsv2 + ptsv3 + ptsv4 + ptsv5 + ptsv6 + ptsv7 + ptsv8 + ptsv9 + ptsv10 So far I've used a for loop to paste together the names of the variables as character vectors, so that I can at least name the variables that I want to get, but I'm stuck on how to add together the numeric vectors tha...