On Fri, 18 Jul 2003, Siddique, Amer wrote:
> I have a data.frame
>
> > names(popA)
> [1] "Year" "Series" "Age""WM" "WF" "HM" "HF" "BM"
> [9] "BF" "IM" "IF" "AM" "AF" "Yr"
>
> how do i loop over a subset of variables in this frame to create a vector of
>
f the loop, not creating a new
element.
bob
-Original Message-
From: Siddique, Amer [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 4:02 PM
To: '[EMAIL PROTECTED]'
Subject: [R] create a vector looping over a frame
Hello,
I have a data.frame
> names(popA)
[1] "
Hello,
I have a data.frame
> names(popA)
[1] "Year" "Series" "Age""WM" "WF" "HM" "HF" "BM"
[9] "BF" "IM" "IF" "AM" "AF" "Yr"
how do i loop over a subset of variables in this frame to create a vector of
length equal to the number of variables in t