Skip to content
Prev 59713 / 398502 Next

Automatic file reading

for(i in 1:10){ assign( paste("data", i), i ) }
[1] 1
[1] 5
[1] 13

See help("assign") for more details and examples.
On Wed, 2004-11-24 at 11:10, Anders Malmberg wrote: