File: SDMXStructureSpecificTimeSeriesData-methods.R

package info (click to toggle)
r-cran-rsdmx 1%3A0.6-5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,024 kB
  • sloc: sh: 14; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#' @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}
#' 
#' @export
#'
SDMXStructureSpecificTimeSeriesData <- function(xmlObj, namespaces){
  new("SDMXStructureSpecificTimeSeriesData",
      SDMXData(xmlObj, namespaces)
  )    
}

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