subset,amsr-method | R Documentation |
Return a subset of a amsr object.
## S4 method for signature 'amsr'
subset(x, subset, ...)
x |
an amsr object. |
subset |
an expression indicating how to subset |
... |
ignored. |
This function is used to subset data within an amsr
object by longitude
or by latitude
. These two methods cannot
be combined in a single call, so two calls are required, as shown
in the Example.
An amsr object.
Dan Kelley
Other things related to amsr data:
[[,amsr-method
,
[[<-,amsr-method
,
amsr
,
amsr-class
,
composite,amsr-method
,
download.amsr()
,
plot,amsr-method
,
read.amsr()
,
summary,amsr-method
Other functions that subset oce objects:
subset,adp-method
,
subset,adv-method
,
subset,argo-method
,
subset,cm-method
,
subset,coastline-method
,
subset,ctd-method
,
subset,echosounder-method
,
subset,lobo-method
,
subset,met-method
,
subset,oce-method
,
subset,odf-method
,
subset,rsk-method
,
subset,sealevel-method
,
subset,section-method
,
subset,topo-method
,
subset,xbt-method
library(oce)
data(amsr) # see ?amsr for how to read and composite such objects
sub <- subset(amsr, -75 < longitude & longitude < -45)
sub <- subset(sub, 40 < latitude & latitude < 50)
plot(sub)
data(coastlineWorld)
lines(coastlineWorld[["longitude"]], coastlineWorld[["latitude"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.