Skip to content

Commit

Permalink
package site
Browse files Browse the repository at this point in the history
  • Loading branch information
kleanthisk10 committed Feb 12, 2018
1 parent ecc7eda commit f0b08f0
Show file tree
Hide file tree
Showing 20 changed files with 1,370 additions and 10 deletions.
8 changes: 8 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ navbar:
- text: "Function Reference"
icon: fa-info-circle
href: reference/index.html
- text: "Vignettes"
icon: fa-book
href: articles/index.html
menu:
- text: "Cluster analysis in OpenBudget.eu"
href: articles/ClusterOBeu.html
- text: "Using Cluster.OBeu with OpenCPU"
href: articles/Cluster.OBeuOpenCPU.html
- text: "News"
icon: fa-newspaper-o
href: news/index.html
Expand Down
17 changes: 17 additions & 0 deletions docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions docs/articles/Cluster.OBeuOpenCPU.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## ---- eval=FALSE, include=TRUE-------------------------------------------
# ../library/ {name of the library} /R/ {function}

## ---- eval=FALSE, include=TRUE-------------------------------------------
# ../library/Cluster.OBeu/R/cl.analysis
# # library/ {name of the library} /R/ {function}

299 changes: 299 additions & 0 deletions docs/articles/Cluster.OBeuOpenCPU.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions docs/articles/ClusterOBeu.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## ----load, warning=FALSE, include=TRUE-----------------------------------
# load Cluster.OBeu
library(Cluster.OBeu)

## ----data----------------------------------------------------------------
aragon_income = "https://apps.openbudgets.eu//api/3/cubes/aragon-2007-income__3209b/aggregate?drilldown=fundingClassification.prefLabel%7CeconomicClassification.prefLabel&aggregates=amount.sum"

## ----open_spending, eval=FALSE, include=TRUE----------------------------
# results = open_spending.cl(
# json_data = aragon_income,
# dimensions ="economicClassification.prefLabel",
# amounts = "amount.sum",
# measured.dimensions = "fundingClassification.prefLabel",
# cl.method="kmeans"
# )
# # Pretty output using prettify of jsonlite library
# jsonlite::prettify(results)

## ---- eval=FALSE, include=TRUE-------------------------------------------
# ../library/Cluster.OBeu/R/open_spending.cl
# # library/ {name of the library} /R/ {function}

Loading

0 comments on commit f0b08f0

Please sign in to comment.