convertIntoS4: Convert a dataset to a S4 class.

View source: R/auxiliaryFun.R

convertIntoS4R Documentation

Convert a dataset to a S4 class.

Description

Convert a data set to a S4 class. The data set must have the elements Variable, Dates, Data, xyCoords. Depending of the kind of data it must also have the elements Members and InitializationDates (for gridded data) or MetaData (for station data). This function is prepared to convert the data sets loaded from the ECOMS User Data Gateway (ECOMS-UDG). See the loadeR.ECOMS R package for more details (http://meteo.unican.es/trac/wiki/udg/ecoms/RPackage).

Usage

convertIntoS4(obj)

Arguments

obj

A list the with the elements Variable, Dates, Data, xyCoords and Members and InitializationDates (for gridded data) or MetaData (for station data)

Details

Most of the visualization functions are programmed to work with S4 class. This function converts datasets into S4 to use those functions.

Note

For gridded data sets with just one ensemble member use as.MrGrid function. For station data use as.MrStation function.

Author(s)

M.D. Frias mariadolores.frias@unican.es and J. Fernandez


SantanderMetGroup/visualizeR documentation built on Oct. 28, 2023, 6:11 a.m.