getData: Downloading Datasets

Description Usage Arguments Value Functions Author(s) See Also Examples

View source: R/getData.R

Description

Downloads available datasets and related information from data.gov.uz API

Usage

1
2
3
4
5
getData(id, format = "csv", sep = ";")

getData_dictionary(id, sep = ";", header = FALSE)

getData_history(id)

Arguments

id

a numeric or character that represents the dataset identifier

format

a character. A format (CSV or JSON) of the response from the server

sep

a field separator character. Values on each line of the file are separated by this character. By default it is a semicolon ';'. The separator character is passed to the function read.csv.

header

a logical value representing if the file contains variable names on its first line

Value

Returns a data frame

Functions

Author(s)

Alisher Suyunov

See Also

availableDatasets to get the data frame with the list of available datasets and corresponding id

Examples

1
2
3
4
5
6
 ## Not run: 
 getData(7)
 getData("7")
 getData_dictionary(7)
 getData_history(7) 
## End(Not run)

alishersuyunov/opendatauzb documentation built on Nov. 9, 2020, 1:21 p.m.