Skip to content
Prev 177451 / 398506 Next

Reading in a large number of dbf files

Duncan,

Thank  you very much. I did not have a chance to examine this approach
today. I will because I need to have this functionality.

I appreciate you time and insights

Steve

Steve Friedman Ph. D.
Spatial Statistical Analyst
Everglades and Dry Tortugas National Park
950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Steve_Friedman at nps.gov
Office (305) 224 - 4282
Fax     (305) 224 - 4147


                                                                           
             Duncan Mackay                                                 
             <mackay at northnet.                                             
             com.au>                                                    To 
                                       Steve_Friedman at nps.gov              
             04/17/2009 09:05                                           cc 
             AM ZE10                   r-help at r-project.org                
                                                                   Subject 
                                       Re: [R] Reading in a large number   
                                       of dbf files                        
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Steve

If the .dbf extension files are dBase type.
generalizing: there are 2 series of dbase .dbf files for non SQL type dbf
files:
1  dBase III when Borland had dBase and
2  dBase 2000 produced by dBase inc

If they are dbase III (ie can be imported into Excel) you can use the
foreign package to import them

require(foreign)
# get a list of files
listd <- list.files(.....)

# loop or otherwise
for (j in seq_along(lisd) ) {

    # Example for 1 file (you will have to use something different for > 1)
    x <-   read.dbf(list[j], as.is = TRUE)

}

Regards

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email home: mackay at northnet.com.au
At 00:35 17/04/2009, you wrote:

            
this
TRUE)
that
After
force
http://www.R-project.org/posting-guide.html