Learn R Programming

raincpc (version 1.1.0)

sdm_raster_from_asc: Raster conversion functions

Description

Raster conversion functions

Usage

sdm_raster_from_asc(x)

Arguments

x

is an object of class 'asc'

Value

Returns an object of class requested.

Details

sdm_raster_from_asc is an adaptation of raster.from.asc from SDMTools; creates an object of class 'RasterLayer' (raster package) from an object of class 'asc'.

Examples

Run this code
# NOT RUN {
#create a simple object of class 'asc'
tasc = sdm_as_asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
str(tasc)

#convert to RasterLayer
traster = sdm_raster_from_asc(tasc)
str(traster)
# }

Run the code above in your browser using DataLab