[R] Seeking help with a simple loop construction

2004-11-29 Thread Greg Blevins
Hello, I have a df, pp, with five variables: nobs(pp) q10_1 q10_2 q10_3 q10_4 actcode 16201620162016201620 I want to create a loop to run four xtabs (the first four variables above by the fifth) and then store the results in a matrix. Below I make my intent

RE: [R] Seeking help with a simple loop construction

2004-11-29 Thread Andy Bunn
with apply... HTH, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Greg Blevins Sent: Monday, November 29, 2004 1:09 PM To: [EMAIL PROTECTED] Subject: [R] Seeking help with a simple loop construction Hello, I have a df, pp, with five variables