Hi R Users,
I commonly import multiple .csv files and then write loops to work with those
files like this:
setwd('C://Nathaniel/R/allfiles')
files-list.files()
allfiles-lapply(t1,read.csv)
for (i in 1:47) {
t1-allfiles[[i]]
etc. etc.
I have written a script that I would like to
Nathaniel, unlike a .csv, a shapefile consists of a set of files. The
functions you use to read them take either the base name (shape1) or
the .shp file (shape1.shp) as argument, and discover the rest
themselves. They don't like to be called with e.g. shape1.dbf.
If your understanding of R is
Hi,
use this to restrict the list to readable files :
t1-list.files(pattern=.shp)
hope this help,
Alban
2011/3/14 Edzer Pebesma edzer.pebe...@uni-muenster.de
Nathaniel, unlike a .csv, a shapefile consists of a set of files. The
functions you use to read them take either the base name