This function is somewhat analogous to subset.data.frame(), but only one independent variable may be used in subset in any call to the function, which means that repeated calls will be necessary to subset based on more than one independent variable (e.g. latitude and longitude).

# S4 method for amsr
subset(x, subset, ...)

Arguments

x

an amsr object.

subset

An expression indicating how to subset x.

...

Ignored.

Value

An amsr object.

See also

Examples

if (FALSE) { library(oce) earth <- read.amsr("f34_20160102v7.2.gz") # not provided with oce fclat <- subset(earth , 45<=latitude & latitude <= 49) fc <- subset(fclat , longitude <= -47 & longitude <= -43) plot(fc) }