get_nc_type: Guess 'netCDF' data type of an object

View source: R/functions_netCDF.R

get_nc_typeR Documentation

Guess netCDF data type of an object

Description

Guess netCDF data type of an object

Usage

get_nc_type(x)

Arguments

x

An object

Value

A text string of supported netCDF data types. Supported types are: "NC_INT", "NC_DOUBLE", "NC_STRING"

See Also

RNetCDF::var.def.nc()

Examples

get_nc_type("test") ## "NC_STRING"
get_nc_type(c(1L, 5L)) ## "NC_INT"
get_nc_type(1) ## "NC_DOUBLE"
## Not run: get_nc_type(TRUE) ## error


DrylandEcology/rSW2st documentation built on Jan. 10, 2024, 6:22 p.m.