Re: [R] For Loop Syntax

2009-04-27 Thread jim holtman
What do you expect this statement to do: trial[i] <- data.frame(A2$`i`) what is `i` supposed to mean? What is it that you want to do? On Mon, Apr 27, 2009 at 10:25 AM, Bronagh Grimes wrote: > Hi there, > > > > Just wondering if someone can help me with the correct syntax to use > with fo

[R] For Loop Syntax

2009-04-27 Thread Bronagh Grimes
Hi there, Just wondering if someone can help me with the correct syntax to use with for loops? I have split my original file by count, & wish to first of all assign new tables based on the splits. Then I just want to create a new variable. Please see code below. This code works outsid