On Mon, 2011-05-16 at 08:40 -0700, Neera Thapa wrote:
> Hello..
> I am currently working on running random forest to make predictions. For
that I
> have a bunch of.dbf files from shapefiiles. Earlier I was running random
forest
> on those dbf files individuallybut now I have >1,000 such files and
procesisng
> one by one is not an option.
>
> I started by trying to read multiple dbf files as:
> >setwd (..)
> >a=list.files()
> > for (x in a)(u=read.dbf(x))
>
> but i get error
> Error in get("read.dbf", "package:foreign")(dbf.name) :
> unable to open DBF file
>
> How can I read these files at once?
What is the value of x after you get the error? x should be a file name.
Is it really a valid DBF file?
Jerome
[[alternative HTML version deleted]]