label: Labeling

View source: R/label.R

labelR Documentation

Labeling

Description

The function label adds data set name and source type.

Usage

label(x, y)

Arguments

x

data.table (see details)

y

character (see details)

Details

columns in 'x' should be named (if present): "lon", "lat", "date", and "value"

Available options are:

  • "20cr" for 20CR v3,

  • "chirps" for CHIRPS v2.0,

  • "cmap" for CMAP standard version,

  • "cmorph" for CMORPH,

  • "cpc" for CPC-Global,

  • "cru-ts" for CRU_TS v4.06,

  • "em-earth" for EM-EARTH,

  • "era20c" for ERA-20C,

  • "era5" for ERA5,

  • "fldas" for FLDAS,

  • "ghcn" for GHCN-M v2,

  • "gldas-clsm" for GLDAS CLSM,

  • "gldas-noah" for GLDAS NOAH,

  • "gldas-vic" for GLDAS VIC,

  • "gleam" for GLEAM v3.7a,

  • "gpcc" for GPCC v2020,

  • "gpcp" for GPCP v2.3,

  • "gpm_imerg" for GPM IMERGM Final v06,

  • "jra55" for JRA-55,

  • "merra2" for MERRA-2,

  • "mswep" for MSWEP v2.8,

  • "ncep-doe" for NCEP/DOE,

  • "ncep-ncar" for NCEP/NCAR,

  • "persiann" for PERSIANN-CDR,

  • "precl" for PREC/L,

  • "terraclimate" for TerraClimate,

  • "trmm-3b43" for TRMM 3B43 v7,

  • "udel" for UDEL v501.

Value

data.table

Examples

## Not run: 
r <- data.table::data.table("date" = as.Date("2000-01-01"), "value" = 42)
s <- label(r, "mswep")

## End(Not run)

pRecipe documentation built on Nov. 23, 2023, 1:08 a.m.