Skip to content

Commit

Permalink
fix generic
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Aug 28, 2023
1 parent d3f092a commit 3c0c231
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/SDMXCompactData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SDMXCompactData <- function(xmlObj, namespaces){
}

#methods
as.data.frame.SDMXAllCompactData <- function(x, nsExpr, labels = FALSE, ...) {
getSDMXAllCompactData <- function(x, nsExpr, labels = FALSE, ...) {
xmlObj <- x@xmlObj;
dataset <- NULL

Expand Down Expand Up @@ -154,5 +154,5 @@ as.data.frame.SDMXAllCompactData <- function(x, nsExpr, labels = FALSE, ...) {

as.data.frame.SDMXCompactData <- function(x, row.names=NULL, optional=FALSE,
labels = FALSE, ...){
return(as.data.frame.SDMXAllCompactData(x, "compact", labels));
return(getSDMXAllCompactData(x, nsExpr = "compact", labels = labels));
}
2 changes: 1 addition & 1 deletion R/SDMXStructureSpecificData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ SDMXStructureSpecificData <- function(xmlObj, namespaces){

as.data.frame.SDMXStructureSpecificData <- function(x, row.names=NULL, optional=FALSE,
labels = FALSE, ...){
return(as.data.frame.SDMXAllCompactData(x, "structurespecific", labels));
return(getSDMXAllCompactData(x, nsExpr = "structurespecific", labels = labels));
}
2 changes: 1 addition & 1 deletion R/SDMXStructureSpecificTimeSeriesData-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ SDMXStructureSpecificTimeSeriesData <- function(xmlObj, namespaces){

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

0 comments on commit 3c0c231

Please sign in to comment.