-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#57 support for StructureSpecificData message type
- Loading branch information
Showing
12 changed files
with
280 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# E.Blondel - 2015/06/08 | ||
#======================= | ||
|
||
#SDMX StructureSpecificData class | ||
setClass("SDMXStructureSpecificData", | ||
contains = "SDMX", | ||
representation(), | ||
prototype = list(), | ||
validity = function(object){ | ||
#eventual validation rules | ||
return(TRUE); | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# E.Blondel - 2015/01/13 | ||
#======================= | ||
|
||
SDMXStructureSpecificData <- function(xmlObj){ | ||
new("SDMXStructureSpecificData", | ||
SDMX(xmlObj) | ||
) | ||
} | ||
|
||
#methods | ||
#======= | ||
|
||
as.data.frame.SDMXStructureSpecificData <- function(x, ...){ | ||
return(as.data.frame.SDMXAllCompactData(x, "structurespecific")); | ||
} | ||
|
||
setAs("SDMXStructureSpecificData", "data.frame", | ||
function(from) as.data.frame.SDMXStructureSpecificData(from)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<message:StructureSpecificData xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" | ||
xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" | ||
xmlns:data="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" | ||
xmlns:dsd="FMI" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=IMF:ECOFIN_DSD(1.0):ObsLevelDim:TIME_PERIOD ../../Esquemas/ECOFIN_DSD.xsd http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message ../../Esquemas/SDMXMessage.xsd"> | ||
|
||
|
||
<message:Header> | ||
<message:ID>UEM.421</message:ID> | ||
<message:Test>false</message:Test> | ||
<message:Prepared>2015-06-11T15:00:05+02:00</message:Prepared> | ||
<message:Sender id="ES1"> | ||
<common:Name xml:lang="ES">Instituto Nacional de Estadística</common:Name> | ||
</message:Sender> | ||
<message:Receiver id="1C"><common:Name xml:lang="ES">Fondo Monetario Internacional</common:Name> | ||
</message:Receiver><common:Name>ECOFIN_DSD</common:Name> | ||
<message:Structure structureID="ECOFIN_DSD" dimensionAtObservation="TIME_PERIOD" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.TimeDimension=IMF:ECOFIN_DSD(1.0).TIME_PERIOD"> | ||
<common:Structure> | ||
<Ref agencyID="IMF" id="ECOFIN_DSD"/> | ||
</common:Structure> | ||
</message:Structure> | ||
<message:DataSetID>ECOFIN_DSD</message:DataSetID> | ||
|
||
</message:Header> | ||
|
||
<message:DataSet data:action="Replace" data:structureRef="ECOFIN_DSD" data:dataScope="DataStructure" xsi:type="dsd:DataSetType"> <Series DATA_DOMAIN="UEM" REF_AREA="ES" INDICATOR="LU_PE_NUM" COUNTERPART_AREA="_Z" FREQ="Q" UNIT_MULT="3" TIME_FORMAT="P3M" > | ||
<Obs TIME_PERIOD="2002-Q1" OBS_VALUE="2152.8" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q2" OBS_VALUE="2103.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q3" OBS_VALUE="2196" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q4" OBS_VALUE="2232.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q1" OBS_VALUE="2328.5" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q2" OBS_VALUE="2216" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q3" OBS_VALUE="2247.5" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q4" OBS_VALUE="2276.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q1" OBS_VALUE="2309.8" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q2" OBS_VALUE="2247.6" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q3" OBS_VALUE="2199.8" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q4" OBS_VALUE="2176.9" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q1" OBS_VALUE="2121.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q2" OBS_VALUE="1969.1" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q3" OBS_VALUE="1783.5" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q4" OBS_VALUE="1860.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q1" OBS_VALUE="1942.8" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q2" OBS_VALUE="1834.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q3" OBS_VALUE="1766.9" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q4" OBS_VALUE="1819.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q1" OBS_VALUE="1863.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q2" OBS_VALUE="1773.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q3" OBS_VALUE="1806.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q4" OBS_VALUE="1942" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q1" OBS_VALUE="2190.5" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q2" OBS_VALUE="2385.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q3" OBS_VALUE="2600.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q4" OBS_VALUE="3206.8" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q1" OBS_VALUE="4018.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q2" OBS_VALUE="4139.6" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q3" OBS_VALUE="4121.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q4" OBS_VALUE="4335" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q1" OBS_VALUE="4617.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q2" OBS_VALUE="4655.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q3" OBS_VALUE="4585.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q4" OBS_VALUE="4702.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q1" OBS_VALUE="4921.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q2" OBS_VALUE="4844.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q3" OBS_VALUE="4998" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q4" OBS_VALUE="5287.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q1" OBS_VALUE="5667.9" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q2" OBS_VALUE="5731" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q3" OBS_VALUE="5824.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q4" OBS_VALUE="6021" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q1" OBS_VALUE="6278.2" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q2" OBS_VALUE="6047.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q3" OBS_VALUE="5943.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q4" OBS_VALUE="5935.6" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q1" OBS_VALUE="5933.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q2" OBS_VALUE="5622.9" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q3" OBS_VALUE="5427.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q4" OBS_VALUE="5457.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2015-Q1" OBS_VALUE="5444.6" OBS_STATUS="A" /> | ||
</Series> | ||
|
||
<Series DATA_DOMAIN="UEM" REF_AREA="ES" INDICATOR="LUR_PE_NUM" COUNTERPART_AREA="_Z" FREQ="Q" UNIT_MULT="0" TIME_FORMAT="P3M" > | ||
<Obs TIME_PERIOD="2002-Q1" OBS_VALUE="11.55" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q2" OBS_VALUE="11.15" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q3" OBS_VALUE="11.49" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2002-Q4" OBS_VALUE="11.61" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q1" OBS_VALUE="11.99" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q2" OBS_VALUE="11.28" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q3" OBS_VALUE="11.3" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2003-Q4" OBS_VALUE="11.37" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q1" OBS_VALUE="11.5" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q2" OBS_VALUE="11.09" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q3" OBS_VALUE="10.74" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2004-Q4" OBS_VALUE="10.53" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q1" OBS_VALUE="10.17" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q2" OBS_VALUE="9.32" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q3" OBS_VALUE="8.41" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2005-Q4" OBS_VALUE="8.71" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q1" OBS_VALUE="9.03" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q2" OBS_VALUE="8.44" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q3" OBS_VALUE="8.08" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2006-Q4" OBS_VALUE="8.26" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q1" OBS_VALUE="8.42" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q2" OBS_VALUE="7.93" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q3" OBS_VALUE="8.01" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2007-Q4" OBS_VALUE="8.57" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q1" OBS_VALUE="9.6" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q2" OBS_VALUE="10.36" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q3" OBS_VALUE="11.23" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2008-Q4" OBS_VALUE="13.79" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q1" OBS_VALUE="17.24" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q2" OBS_VALUE="17.77" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q3" OBS_VALUE="17.75" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2009-Q4" OBS_VALUE="18.66" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q1" OBS_VALUE="19.84" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q2" OBS_VALUE="19.89" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q3" OBS_VALUE="19.59" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2010-Q4" OBS_VALUE="20.11" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q1" OBS_VALUE="21.08" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q2" OBS_VALUE="20.64" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q3" OBS_VALUE="21.28" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2011-Q4" OBS_VALUE="22.56" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q1" OBS_VALUE="24.19" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q2" OBS_VALUE="24.4" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q3" OBS_VALUE="24.79" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2012-Q4" OBS_VALUE="25.77" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q1" OBS_VALUE="26.94" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q2" OBS_VALUE="26.06" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q3" OBS_VALUE="25.65" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2013-Q4" OBS_VALUE="25.73" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q1" OBS_VALUE="25.93" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q2" OBS_VALUE="24.47" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q3" OBS_VALUE="23.67" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2014-Q4" OBS_VALUE="23.7" OBS_STATUS="A" /> | ||
<Obs TIME_PERIOD="2015-Q1" OBS_VALUE="23.78" OBS_STATUS="A" /> | ||
</Series> | ||
|
||
</message:DataSet> | ||
|
||
|
||
</message:StructureSpecificData> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\name{SDMXStructureSpecificData-class} | ||
\docType{class} | ||
\alias{SDMXStructureSpecificData-class} | ||
\alias{SDMXStructureSpecificData} | ||
\alias{SDMXStructureSpecificData-method} | ||
|
||
|
||
\title{Class "SDMXStructureSpecificData"} | ||
\description{ A basic class to handle a SDMX-ML structure specific data set} | ||
\section{Objects from the Class}{are never to be generated; will be used by the \link{readSDMX} main parser function} | ||
|
||
|
||
\usage{ | ||
SDMXStructureSpecificData(xmlObj) | ||
} | ||
|
||
\arguments{ | ||
\item{xmlObj}{an object of class "XMLInternalDocument"} | ||
} | ||
|
||
\author{ Emmanuel Blondel, \email{emmanuel.blondel1@gmail.com}} | ||
|
||
\keyword{classes} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.