Load_data: Load data

Description Usage Arguments Value Examples

View source: R/obs.R

Description

Loads data simultaneously from multiple files. For data files, it is assumed that the columns have a header. The function understands filenames with extensions 'shp', 'txt', 'dat', and 'tif'.

Usage

1
Load_data(thinning = 1, tif_grid = 750, convert_m_to_km = T, ...)

Arguments

thinning

determines a thinning rate for the shapefiles. This is useful when shapefiles, particularly coastlines, are very high in resolution.

tif_grid

the native resolution of the tif file, if present, in m

convert_m_to_km

if TRUE, shapefiles and tif file units are converted to km

...

paths to data sets which will be loaded. These need to be assigned variable names

Value

list of data frames

Examples

1
2
3
4
df <- data.frame(x=c(1,2,3),y=c(2,2,2))
write.table(df,file="~/temp.dat")
data <- Load_data("~/temp.dat")
file.remove("~/temp.dat")

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.