load_nc {tagtools} | R Documentation |
Load a tag dataset from a netCDF file.
Description
This function loads a tag dataset from a netCDF file (this is an archival file format supported by the tagtools package and suitable for submission to online data archives).
Usage
load_nc(file, which_vars = NULL)
Arguments
file |
File name (and path, if necessary) of netCDF file to be read, as a quoted character string. |
which_vars |
(Optional) A list of quoted character strings giving the exact names of variables to be read in. Default is to read all variables present in the file. parameters should be read in. |
Value
An animaltag
object (a list) containing sensor and metadata structures. The item names in X will be the same as the names of the variables in the NetCDF file (plus an "info" one), e.g., if the file contains A and P, output object X will have fields X$A, X$P and X$info (the file metadata).
Examples
hold <- system.file("extdata","beaked_whale.nc", package = "tagtools", mustWork = TRUE)
load_nc(hold)
[Package tagtools version 0.2.0 Index]