Re: [R] Creating loops with strings

2009-09-23 Thread cls59
cls59 wrote: > > > data.file <- paste( set.name, sep='' ) > > assign( set.name, read.dta( file.name ), envir = .GlobalEnv ) > > Opps, those lines should have been: data.file <- paste( set.name, '.dta', sep='' ) assign( set.name, read.dta( data.file ), envir = .GlobalEnv ) Sor

Re: [R] Creating loops with strings

2009-09-23 Thread cls59
Rakknar wrote: > > Hello. I'm trying to run a series of commands in two different datasets. > For make it efficient I want to make a loop for it. Until now the only > command for loops i found it's the for() command it's only for series of > numbers and not a series of strings, witch it's what

Re: [R] Creating loops with strings

2009-09-22 Thread Duncan Murdoch
On 22/09/2009 4:50 PM, Rakknar wrote: Hello. I'm trying to run a series of commands in two different datasets. For make it efficient I want to make a loop for it. Until now the only command for loops i found it's the for() command it's only for series of numbers and not a series of strings, W

[R] Creating loops with strings

2009-09-22 Thread Rakknar
Hello. I'm trying to run a series of commands in two different datasets. For make it efficient I want to make a loop for it. Until now the only command for loops i found it's the for() command it's only for series of numbers and not a series of strings, witch it's what i'm needing. It would be som