You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/econdatar-package.Rd
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@
10
10
}
11
11
\details{
12
12
13
-
ThispackageprovidesaninterfacetoCoderaAnalytic's econometric data service (https://codera.co.za) and the EconData database (https://www.econdata.co.za) in particular.
13
+
Thispackageprovidesaninterfaceto\href{https://codera.co.za/}{CoderaAnalytics'} econometric data service and the \href{https://www.econdata.co.za/}{EconData} database in particular.
14
14
15
15
EconData enables automation of analytical workflows that depend on public domain or third-party data. It is also a leading-edge forecast management system, enabling data and model automation and best practice data and model governance. EconData supports data-sharing across databases and within institutions, codifies modelling process flows and provides user-level access control. EconData makes it easy to securely manage and share model scenarios and forecast vintages.
16
16
17
-
The EconData Registry provides a central data glossary of data concepts and the information necessary to access and interpret data and associated metadata.
17
+
The EconData Registry provides a central data glossary of data concepts and the information necessary to access and interpret data and associated metadata. The Registry can be queried through this package's \code{\link{read_registry}} function.
\item{include_series}{If \code{TRUE} series (andtheirmetadata) withobervationsomittedareincludedinthereturn (seriesarediscardedwhen \emph{tidy} is \code{TRUE}).}
\code{version} \tab\tabcharacter. Version(s) ofthe data (differentversionswillhavedifferentmetadata), or \code{"all"} toreturnallavailableversions. \cr
\item{tidy}{logical.Returndataandmetadataintidy \emph{data.table}'s (see Value), by passing the result through \code{tidy_data}.}
28
28
}
29
29
\details{
30
-
An EconData account (http://econdata.co.za) is required to use this function. The user must provide an API token that can be found on the \emph{Account} page of the online portal, a GUI dialog will prompt the user for their API token. Credentials can also be supplied by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "client_id;client_secret", e.g. \code{Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")}, when available.
30
+
An \href{https://econdata.co.za/}{EconData} account is required to use this function. The user must provide an API token, which can be found on the \emph{Account} page of the online portal. A GUI dialog will prompt the user for their API token. Credentials can also be supplied by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "client_id;client_secret", e.g. \code{Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")}, when available.
31
31
}
32
32
\value{
33
33
If \code{tidy = FALSE}, an unnamed list of data frames is returned. Each data frame further has a \code{"metadata"} attribute providing information about the data set.
Copy file name to clipboardExpand all lines: man/read_dataset.Rd
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
read_dataset
6
6
}
7
7
\description{
8
-
Returnsthedataforthegivendataset-ECONDATA:id(version), asalist, orastidy \emph{data.table}'s. Available data sets can be looked up using \code{read_database()} or from the web platform (http://econdata.co.za). Tidying can be done directly within \code{read_dataset()}, or ex-post using \code{tidy_data()}.
8
+
Returnsthedataforthegivendataset-ECONDATA:id(version), asalist, orastidy \emph{data.table}'s. Available data sets can be looked up using \code{read_database()} or from the \href{https://www.econdata.co.za/}{web platform}. Tidying can be done directly within \code{read_dataset()}, or ex-post using \code{tidy_data()}.
\item{x}{A raw API return object to be tidied. Can also be done directly in \code{read_dataset()} by setting \code{tidy = TRUE}. See \code{tidy} below for tidying options.}
18
-
\item{wide}{Should the tidied data be returned in \emph{wide} or \emph{long} format.}
18
+
\item{wide}{Specifies whether the tidied data be returned in \emph{wide} or \emph{long} format.}
19
19
20
-
\item{\dots}{Further \emph{Optional} arguments:
20
+
\item{\dots}{Further \emph{optional} arguments:
21
21
\tabular{llll}{
22
22
\code{agencyid} \tab\tab character. Defaults to \code{ECONDATA}. Agency responsible for the metadata creation/maintenance. \cr
23
23
\code{version} \tab\tab character. Version(s) of the data (different versions will have different metadata), or 'all' to return all available versions. \cr
24
-
\code{series_key} \tab\tab character. A character vector specifying a subset of time series (see the web platform (export function) for details). \cr
24
+
\code{series_key} \tab\tab character. A character vector specifying a subset of time series (see the web platform (export function) for an example). The series key is composed of a few dimensions, separated with full-stops. In the syntax of the argument, include various concept codes \emph{within each dimension}, separated by a + character. The function then downloads the union of all the possible combinations of the concept codes chosen. Please see \href{https://econdata.co.za/fast-econdatar-downloads/}{our blog post}.\cr
25
25
\code{release} \tab\tab character (optionally with format \%Y-\%m-\%dT\%H:\%M:\%S, to be coerced to a date/time). The release description, which will return the data associated with that release (if the given description matches an existsing release); or a date/time which will return the data as it was at the given time; or 'latest' which will return the latest release; or 'unreleased' which will return any unreleased data (useful for data that is updated more often than it is released, e.g. daily data). \cr
26
26
\code{file} \tab\tab character. File name for retrieving data sets stored as JSON data from disk (output of \code{read_dataset()}. \cr
27
-
}
28
-
}
29
-
30
-
\item{tidy}{logical. Return data and metadata in tidy \emph{data.table}'s (seeValue), bypassingtheresultthrough \code{tidy_data}.If \code{TRUE}, \code{read_dataset()/tidy_data()} admitthefollowingadditionalarguments:
27
+
}}
28
+
\item{tidy}{logical. Return data and metadata in tidy \emph{data.table}'s (seeValue), bypassingtheresultthrough \code{tidy_data}.If \code{TRUE}, \code{read_dataset()/tidy_data()} admitthefollowingadditionalarguments:}
29
+
\item{\dots}{
31
30
\tabular{llll}{
32
31
\code{wide} \tab\tablogical, default: \code{TRUE}.Returnsdatainacolumn-basedformat, with \code{"label"} and \code{"source_identifier"} attributesto columns (whenavailable) andanoverall"metadata"attributetothetable, otherwisealong-formatisreturned.SeeValue. \cr
Copy file name to clipboardExpand all lines: man/read_econdata.Rd
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@
5
5
read_econdata
6
6
}
7
7
\description{
8
-
Returnsthedataforthegivendataset-ECONDATA:id(version), asalist, orastidy \emph{data.table}'s. Available data sets can be looked up from the web platform (http://www.econdata.co.za). Tidying can be done directly within \code{read_econdata()}, or ex-post using \code{tidy_data()}.
Returnsthedataforthegivendataset-ECONDATA:id(version), asalist, orastidy \emph{data.table}'s. Available data sets can be looked up from the \href{http://www.econdata.co.za/}{web platform}. Tidying can be done directly within \code{read_econdata()}, or ex-post using \code{tidy_data()}.
9
11
}
10
12
\usage{
11
13
read_econdata(id, tidy = FALSE, \dots)
@@ -16,7 +18,7 @@ tidy_data(x, \dots)
16
18
\item{id}{Data identifier.}
17
19
\item{x}{A raw API return object to be tidied. Can also be done directly in \code{read_econdata()} by setting \code{tidy = TRUE}. See \code{tidy} below for tidying options.}
18
20
19
-
\item{\dots}{Further \emph{Optional} arguments:
21
+
\item{\dots}{Further \emph{optional} arguments:
20
22
\tabular{llll}{
21
23
\code{agencyid} \tab\tab character. Defaults to \code{ECONDATA}. Agency responsible for the metadata creation/maintenance. \cr
22
24
\code{version} \tab\tab character. Version(s) of the data (different versions will have different metadata), or 'all' to return all available versions. \cr
@@ -26,7 +28,8 @@ tidy_data(x, \dots)
26
28
}
27
29
}
28
30
29
-
\item{tidy}{logical. Return data and metadata in tidy \emph{data.table}'s (seeValue), bypassingtheresultthrough \code{tidy_data}.If \code{TRUE}, \code{read_econdata()/tidy_data()} admitthefollowingadditionalarguments:
31
+
\item{tidy}{logical. Return data and metadata in tidy \emph{data.table}'s (seeValue), bypassingtheresultthrough \code{tidy_data}.If \code{TRUE}, \code{read_econdata()/tidy_data()} admitthefollowingadditionalarguments:}
32
+
\item{\dots}{
30
33
\tabular{llll}{
31
34
\code{wide} \tab\tablogical, default: \code{TRUE}.Returnsdatainacolumn-basedformat, with \code{"label"} and \code{"source_identifier"} attributesto columns (whenavailable) andanoverall"metadata"attributetothetable, otherwisealong-formatisreturned.SeeValue. \cr
32
35
@@ -45,7 +48,7 @@ tidy_data(x, \dots)
45
48
}
46
49
}
47
50
\details{
48
-
AnEconData account (http://econdata.co.za) isrequiredtousethisfunction.TheusermustprovideanAPItokenthatcanbefoundonthe \emph{Account} pageoftheonlineportal,aGUIdialogwillprompttheuserfortheirAPItoken.CredentialscanalsobesuppliedbysettingtheECONDATA_CREDENTIALSenvironmentvariableusingthesyntax:"client_id;client_secret", e.g. \code{Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")}, whenavailable.
51
+
An\href{http://econdata.co.za/}{EconData} accountisrequiredtousethisfunction.TheusermustprovideanAPItoken, whichcanbefoundonthe \emph{Account} pageoftheonlineportal;aGUIdialogwillprompttheuserfortheirAPItoken.CredentialscanalsobesuppliedbysettingtheECONDATA_CREDENTIALSenvironmentvariableusingthesyntax:"client_id;client_secret", e.g. \code{Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")}, whenavailable.
@@ -55,6 +58,7 @@ If \code{tidy = TRUE} and \code{wide = TRUE} (the default), a single \emph{data.
55
58
If \code{tidy = TRUE} and \code{wide = FALSE} and \code{compact = FALSE} (the default), a named list of two \emph{data.table}'sisreturned.Thefirst, \code{"data"}, hascolumns'code', 'date'and'value'providingthedatainalongformat.Thesecond, \code{"metadata"}, providesdatasetandseries-levelmatadata, withonerowforeachseries.If \code{compact=TRUE}, thesetwodatasetsarecombined, whereallrepetitivecontentisconvertedtofactorsformoreefficientstorage.Ifmultiple datasets (orversionsofadatasetif \code{version} isspecifiedas'all') arebeingqueried, \code{compact=FALSE} givesanestedlist, whereas \code{compact=TRUE} bindseverythingtogethertoasinglelongframe.Ingeneral, if \code{wide=FALSE}, noattributesareattachedtothetablesorcolumnsinthetables.
0 commit comments