In this video, Mark Niemann-Ross demonstrates the use of read.dbf and write.dbf. Learn how to import and export R objects to and from DBF files.
- [Instructor] DBF's are an extremely common way…to exchange information,…and here's how to import them…using the foreign library in R.…Now foreign, is most likely already installed,…in your version of R, but use the library root command…to make sure that it's active.…Also, be sure that you've chosen "chapter 0 3"…in the exercise files, as your current working directory.…That's just to make sure that we can access the files…that we're going to import.…To import a DBF file, requires the "read.dbf" command,…and here's how it looks.…
I'm going to create a vector.…And we'll call it "foreignDBF", and into that vector,…I'm going to place the results of "read.dbf".…"Read.dbf" wants to know what file to import,…and so I'm going to choose something…from the "samples files folder".…I'm going to choose the "eva.dbf" file,…and when I import it,…I want to make sure that strings…are not imported as factors.…
To do that, I'm going to use "as is equals true",…and when I run that, you'll see that I now have a data frame…with the foreign.DBF information,…
- Challenges and characteristics of high-variety data
- Using R with Excel
- Exporting an R data structure to an Excel workbook
- Importing text, CSV, and tab-delimited files
- Working with the R foreign package
- Using R with XML files, HTML files, and Google Docs
- Working with images in R
Skill Level Intermediate
R Programming in Data Science: High Volume Datawith Mark Niemann-Ross1h 25m Intermediate
1. Use R with Excel
2. Importing Text Files
3. Understanding the Foreign Package
4. Use R with Popular Data Formats
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.