-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme.rmd
54 lines (34 loc) · 1.78 KB
/
readme.rmd
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: googlePublicData
output: github_document
---
An *R* package for building *Google's* _Data Sets Publication Language_ (DSPL) metadata files used in *Public Data Explorer*.
[![Downloads](http://cranlogs.r-pkg.org/badges/googlePublicData?color=brightgreen)](http://cran.rstudio.com/package=googlePublicData)
[![Travis-CI Build Status](https://travis-ci.org/gvegayon/googlePublicData.svg?branch=master)](https://travis-ci.org/gvegayon/googlePublicData)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/gvegayon/googlePublicData?branch=master&svg=true)](https://ci.appveyor.com/project/gvegayon/googlePublicData)
[![codecov](https://codecov.io/gh/gvegayon/googlePublicData/branch/master/graph/badge.svg)](https://codecov.io/gh/gvegayon/googlePublicData)
Features:
* Reads tab, csv, xls and xlsx from a folder.
* Identifies data types and distinguishes between dimensional and metric concepts.
* Identifies dimensional data tabs.
* Auto generates conceps id.
* Auto data sorting on dimensional (no time) concepts.
* Prints XML and csv files to upload to Public Data Explorer.
* Some bug trackers before final printing XML.
* Builds ZIP file containing CSV and XML files.
So you don't need to mess with the XML coding at all!
```{r, split=FALSE}
library(googlePublicData)
# This path has some csv files that we will use
data.path <-try(paste(.libPaths()[1],'/googlePublicData/data',sep=''), silent=T)
data.path
# The dspl function looks for csv files in that paths, and analyzes them
mydspl <- dspl(path=data.path, sep=";")
# If we wanted to write the zip file... ready to be uploaded to
# http://publicdata.google.com
# dspl(path=data.path, sep=";", output= "mydspl.zip")
# Printing the data
mydspl
# Summary of the dspl class object
summary(mydspl)
```