Learn R Programming

twc (version 0.0.2)

selyear: Select Years

Description

The function selyear subsets the data in time within a year range.

Usage

selyear(x, y)

# S4 method for Raster selyear(x, y)

# S4 method for data.table selyear(x, y)

# S4 method for character selyear(x, y)

Value

Raster* object; data.table

Arguments

x

Raster* object; data.table (see details); filename (character, see details)

y

numeric. Time range in the form: (start_year, end_year)

Details

If `x` is a data.table, its columns should be named: "lon", "lat", "date", and "value"

If `x` is a filename, it should point to a *.nc file.