meanPRISM: Extract mean monthly PRISM climate values for buffers around...

Description Usage Arguments

View source: R/meanPRISM.R

Description

Extract mean monthly PRISM climate values for buffers around lat/long points

Usage

1
meanPRISM(points, var_name, buffer, filepath, n_cores, delete_files)

Arguments

points

A dataframe of points with columns Latitude and Longitude

var_name

A character string specifying the name of the climate variable. If not provided, the variable's column name in the returned dataframe will be mean.value. Note that some particular point * month measurements may be missing, and so NAs will be returned for these. A warnign message will be printed if this occurs.

buffer

Positive numeric value stating the length (in meters) of the desired buffer radius. Mean values of the climate variable will be calculated for each point from within this buffer

filepath

A character string stating the path to the folder where unzipped PRISM files are stored (downloaded using get_prism_monthlys)

n_cores

Positive integer stating the number of processing cores to split the job across. Default is parallel::detect_cores() - 1

delete_files

Logical describing whether or not to delete raw PRISM data folders once the job is complete. Default is FALSE


nicholasjclark/BBS.occurrences documentation built on July 19, 2020, 8:31 p.m.