nc.get.dim.names: Get a list of names of dimensions

Description Usage Arguments Details Value Examples

View source: R/helpers.r

Description

Get a list of names of dimensions.

Usage

1

Arguments

f

The file (an object of class ncdf4)

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

1
2
3
4
5
6
7
## Get dimension names
## Not run: 
f <- nc_open("pr.nc")
dim.names <- nc.get.dim.names(f, "pr")
nc_close(f)

## End(Not run)

ncdf4.helpers documentation built on May 29, 2017, 9:36 p.m.