Dear Group:
I am working with a data frame containing 316 rows of individuals
with 79 variables. Each of these 79 variables have values that range
between -4 to +4, and I want to subset this data frame so that in the
resulting new dataframe, values of _all_ of these variables should
range
Try this:
subj1 - cbind(-4, -3, -1, -5, -7)
subj2 - cbind(-2, -1, -1, -2, +2)
subj3 - cbind(+2, +1, +2, +1, +2)
subj4 - cbind(-4, -1, -2, +2, +1)
mydf - as.data.frame(rbind(subj1, subj2, subj3, subj4))
mydf
V1 V2 V3 V4 V5
1 -4 -3 -1 -5 -7
2 -2 -1 -1 -2 2
3 2 1 2 1 2
4 -4 -1 -2 2 1
Arin Basu wrote:
Dear Group:
I am working with a data frame containing 316 rows of individuals
with 79 variables. Each of these 79 variables have values that range
between -4 to +4, and I want to subset this data frame so that in the
resulting new dataframe, values of _all_ of these