Learn R Programming

ncmeta (version 0.5.0)

nc_var: NetCDF variable

Description

Return a data frame about the variable at index i.

Usage

nc_var(x, i)

# S3 method for character nc_var(x, i)

# S3 method for NetCDF nc_var(x, i)

Value

data frame of variable information

Arguments

x

file name or handle

i

variable index (zero based)

See Also

nc_vars to obtain information about all variables, nc_inq for an overview of the file

Examples

Run this code
f <- system.file("extdata", "S2008001.L3m_DAY_CHL_chlor_a_9km.nc", package = "ncmeta")
nc_var(f, 0)

Run the code above in your browser using DataLab