nc.get.dim.names {ncdf4.helpers} | R Documentation |
Get a list of names of dimensions
Description
Get a list of names of dimensions.
Usage
nc.get.dim.names(f, v)
Arguments
f |
The file (an object of class |
v |
Optionally, a variable |
Details
This function returns the names of dimensions in a file or, if v
is also supplied, attached to a particular variable.
Value
A character vector naming the dimensions found.
Examples
## Get dimension names
## Not run:
f <- nc_open("pr.nc")
dim.names <- nc.get.dim.names(f, "pr")
nc_close(f)
## End(Not run)
[Package ncdf4.helpers version 0.3-6 Index]