df_to_raster: data frame to global half-degree raster

Description Usage Arguments Value

View source: R/raster.R

Description

Convert data.frame to global 0.5 deg raster

Usage

1
2
df_to_raster(df, col_value = "value", tif = NULL,
  col_cellid = "cellid", cols_lonlat = NULL)

Arguments

df

data frame containing col_cellid OR cols_lonlat and value column

col_value

column of value to convert to raster

tif

optional output tif to write

col_cellid

column of col_cellid in data frame, default "cellid", NULL if using cols_lonlat

cols_lonlat

columns of cols_lonlat in data frame, eg 'c("CenterLat","CenterLong")'

Value

raster of given value in data.frame by location given for half-degree global raster


marinebon/gmbi documentation built on Oct. 6, 2020, 10:23 p.m.