R/as.clindex.data.frame.R

Defines functions as.climdex.data.frame

Documented in as.climdex.data.frame

NULL
#'
#' This functions transforms a generic data object \code{data} in a \code{clindex.data.frame}-type S3 object 
#' 
#' 
#' @param data the object to be transformed
#'  
#' @seealso \code{\link{climdex.data.frame}}
#' 
#' @author Emanuele Cordano, Annalisa Di Piazza
#' @export
#'
#' 
#' @title Coercion to a ClimDex Data Frame
#' 
#' @seealso \code{\link{climdex.data.frame}}
#' 
#' 
#' 






as.climdex.data.frame <- function(data) {

#	print(class(data))
	out <- as.data.frame(do.call(cbind,data))
	class(out) <- "climdex.data.frame"
	return(out)
	
}                  

Try the RClimMAWGEN package in your browser

Any scripts or data that you put into this service are public.

RClimMAWGEN documentation built on May 2, 2019, 3:38 p.m.