| subsetDimension | R Documentation |
Create a new grid/multigrid that is a subset of the input grid along the selected dimension.
subsetDimension(grid, dimension = NULL, indices = NULL)
grid |
The input grid to be subset. This is either a grid, as returned e.g. by |
dimension |
Character vector indicating the dimension along which the positions indicated by the |
indices |
An integer vector indicating the positions of the dimension to be extracted. In case of subsetting several dimensions at at time, this corresponds to a list of indices. |
The attribute subset will be added taking the value of the dimension parameter.
A new grid object that is a logical subset of the input grid along the specified dimension.
J. Bedia and S. Herrera
Other subsetting:
getTemporalIntersection(),
intersectGrid(),
intersectGrid.spatial(),
intersectGrid.time(),
limitArea(),
subsetCluster(),
subsetGrid(),
subsetMembers(),
subsetRuntime(),
subsetSeason(),
subsetSpatial(),
subsetStation(),
subsetVar(),
subsetYears()
require(climate4R.datasets)
# Example - Member subset
data("CFS_Iberia_tas")
# Selection of members 3 and 7
sub <- subsetDimension(CFS_Iberia_tas,
dimension = "member",
indices = 1:2)
require(visualizeR)
spatialPlot(climatology(sub), backdrop.theme = "coastline")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.