dim.def.ncv {ncvar} | R Documentation |
Defines a dimension object containing one or more dimensions.
dim.def.ncv(name, value, unlim=FALSE, dimlist=NULL)
name |
The name of the dimension. |
value |
The dimension length. That is the number of values along this dimension. This must be a positive integer. |
unlim |
Set to TRUE if an unlimited dimension should be
created, otherwise FALSE . |
dimlist |
A list of dimensions in the format "name", value, "name", value, etc. |
This function defines a new dimension object. This function is normally not called by the user.
Object or list of objects of class "dim.ncv".
Juerg Schmidli
## Define some dimensions dims <- dim.def.ncv(dimlist=list("dimx", 10, "dimy", 20, "time", 2, "max_string_length", 30) ) time <- dim.def.ncv(name="time", unlim=TRUE) dims[[3]] <- time