R/SDMXStructureSpecificTimeSeriesData-methods.R

Defines functions as.data.frame.SDMXStructureSpecificTimeSeriesData SDMXStructureSpecificTimeSeriesData

Documented in SDMXStructureSpecificTimeSeriesData

#' @name SDMXStructureSpecificTimeSeriesData
#' @rdname SDMXStructureSpecificTimeSeriesData
#' @aliases SDMXStructureSpecificTimeSeriesData,SDMXStructureSpecificTimeSeriesData-method
#' 
#' @usage
#' SDMXStructureSpecificTimeSeriesData(xmlObj, namespaces)
#' 
#' @param xmlObj object of class "XMLInternalDocument derived from XML package
#' @param namespaces object of class "data.frame" given the list of namespace URIs
#' @return an object of class "SDMXStructureSpecificTimeSeriesData"
#' 
#' @seealso \link{readSDMX}
#'
SDMXStructureSpecificTimeSeriesData <- function(xmlObj, namespaces){
  new("SDMXStructureSpecificTimeSeriesData",
      SDMXData(xmlObj, namespaces)
  )    
}

#methods
#=======

as.data.frame.SDMXStructureSpecificTimeSeriesData <- function(x, row.names=NULL, optional=FALSE,
                                                    labels = FALSE, ...){
  return(getSDMXAllCompactData(x, nsExpr = "structurespecific", labels = labels));
}

Try the rsdmx package in your browser

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

rsdmx documentation built on Aug. 28, 2023, 5:09 p.m.