[R] Creating loops with strings

cls59 chuck at sharpsteen.net
Thu Sep 24 01:37:12 CEST 2009




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 ) 


Sorry for the confusion! 
(I need more coffee... or a nap)

-Charlie


-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: http://www.nabble.com/Creating-loops-with-strings-tp25530899p25531332.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list