search for: ptsv

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

Did you mean: pts
2012 Apr 09
2
return one vector that is the sum of a list of vectors
...akes a list of variable groups and a vector of numbers (e.g., "jtsv" would indicate one group of variables, "jtsv1", "jtsv2", etc, each of which name a variable in a data frame), and returns a list of variable group 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 + pt...