avg_stack: Avg_stack function

Description Usage Arguments Examples

View source: R/avg_stack.R

Description

This function allows you to search for raster files in a folder, crop them, average them, and output the result as a new file

Usage

1
avg_stack(x, y, boundary, aa)

Arguments

x

folder where data files are

y

the pattern by which to search for files

boundary

the vector file used to crop each raster file retrieved

aa

output file name

Examples

1
monthly_temp("C:/Users/Emily/Documents/Fall_2020/Geospatial_R/MODIS_Temp", "2020_01.*\\.tif", SA, "2020_01_mean_temp.tif")

eevenden/SouthAfricaDrought documentation built on Jan. 1, 2021, 12:14 a.m.