Skip to content

importing data

5 messages · Ivan Calandra, Ray Cheung

#
What about this then:
list_of_datasets <- lapply(file_names, read.table, other_args_to_read.table)

Something that might then be useful is:
names(list_of_datasets) <- file_names

Does it do it now?

Ivan

--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra

Le 28/01/13 07:34, Ray Cheung a ?crit :
#
This code is indeed much shorter. About the speed, I guess it should be 
faster, but you should test it with system.time()

I'm glad that it helped.
Ivan


--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra

Le 28/01/13 16:38, Ray Cheung a ?crit :