CreateRasterFromPointsAndBase: CreateRasterFromPointsAndBase

Description Usage Arguments Details Value

Description

Creates a 'RasterLayer' from an input dataframe of point locations and a base RasterLayer that sets the CRS and cell locations for the output

Usage

1
CreateRasterFromPointsAndBase(df, value, x, y, buffer, base)

Arguments

df

input dataframe with columns for lat, long, and value

value

column name with data for cell values

x

column name for latitude coordinates

y

column name for longitude coordinates

buffer

distance in cell units to buffer around 'df' points for output Rasterlayer. If NULL(default), the entire extent of the base parameter is used for the output Rasterlayer.

base

raster that is used to rasterize() the input data, default is set to a RasterLayer specific to my BAEA project

Details

Input latitude and longitude must match the CRS of base raster. Returned 'RasterLayer' has same CRS as base raster.

Value

A 'RasterLayer' object with values in all the cells that had locations.


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.