importASC: Imports raster files in .asc format to a raster stack or...

Description Usage Arguments Value Author(s)

View source: R/importASC.R

Description

Wrapper of the functions stack, brick, and CRS that facilitates loading .asc raster files into R as a stack or a brick.

Usage

1
2
3
4
5
importASC(
folder,
crs = "+init=epsg:4326",
to.memory = TRUE
)

Arguments

folder

Folder storing the .asc raster files.

crs

Character string defining a coordinate reference system as per the PROJ.4 standard. The default crs is "+init=epsg:4326", valid for data using latitude and longitude degrees as coordinates, and the global datum WGS84. Check the help file of crs for further details. The argument can be set to NULL, or "unknown" if the coordinate reference system is unknown.

to.memory

If TRUE (default option), the function returns a raster brick residing in memory. Otherwise it returns a stack, which resides in the hard disk, and slows down most operations. If the computer has enough RAM memory, use TRUE to speed up any operation on the outcome of this function.

Value

A raster brick or stack.

Author(s)

Blas Benito <blasbenito@gmail.com>. The functions stack, brick, and crs are authored by Robert J. Hijmans.


BlasBenito/SDMworkshop documentation built on March 4, 2020, 4:16 a.m.