Re: [R] create a vector looping over a frame

2003-07-18 Thread Thomas W Blackwell
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 >

RE: [R] create a vector looping over a frame

2003-07-18 Thread RBaskin
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] "

[R] create a vector looping over a frame

2003-07-18 Thread Siddique, Amer
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