O'Reilly logo

Spatial Analytics with ArcGIS by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading, writing, loading, and saving data

There are three basic formats that we'll examine for reading data into and out of R. The first is text files, and this is typically going to be comma or tab-delimited text files. The next format is R data files, and the final format is spatial data files with shapefiles being the most common.

Data stored in text files can be read into R or you can write data to a text file. Typically, your text files will be either comma or tab-delimited. To open a text file for analysis in R, you can use the read.table() function to load the dataset into a data frame. The header line, if included in the text file, will load a dataset into a data frame object. Default values will be used for the column headers if ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required