Getting and Cleaning Data
Week 2
Open connection with:
- file: a local text file
- url: a file in the web
- gzfile: a .gz file (gzip: compressed file)
- bzfile: a .bzip2 file (bzip2: compressed file)
- ?connections for more info
“Foreign packages” allows reading files from Minitab, S, SAS, Stata, Systat:
- read.arff: Weka
- read.dta: Stata
- read.mtp: Minitab
- read.octave: Octave
- read.spss: SPSS
- read.xport: SAS
DB Packages
- RPostgreSQL
- RODBC
- RMongo
Data
- read.fwf: read fixed width format files
- read.table:
- read.csv:
- read.delim:
Reading image packages
- jpeg
- readbitmap
- png
- EBImage
- FITSio
GIS data
- rdgal
- rgeos
- raster
Music
- tuneR
- seewave