https://github.com/openwashdata/ds4owdanalytics
Dark data from the DS4OWD course
https://github.com/openwashdata/ds4owdanalytics
Last synced: 4 months ago
JSON representation
Dark data from the DS4OWD course
- Host: GitHub
- URL: https://github.com/openwashdata/ds4owdanalytics
- Owner: openwashdata
- License: cc-by-4.0
- Created: 2025-01-31T10:58:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-31T11:07:09.000Z (over 1 year ago)
- Last Synced: 2025-09-05T15:02:35.144Z (9 months ago)
- Language: R
- Homepage: https://openwashdata.github.io/ds4owdanalytics/
- Size: 1.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
---
output: github_document
always_allow_html: true
editor_options:
markdown:
wrap: 72
chunk_output_type: console
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
message = FALSE,
warning = FALSE,
fig.retina = 2,
fig.align = 'center'
)
```
# ds4owdanalytics
[](https://creativecommons.org/licenses/by/4.0/)
[](https://github.com/openwashdata/ds4owdanalytics/actions/workflows/R-CMD-check.yaml)
[](https://zenodo.org/doi/10.5281/zenodo.14778963)
The goal of ds4owdanalytics is to make dark data from the DS4OWD course publicly available
## Installation
You can install the development version of ds4owdanalytics from
[GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("openwashdata/ds4owdanalytics")
```
```{r}
## Run the following code in console if you don't have the packages
## install.packages(c("dplyr", "knitr", "readr", "stringr", "gt", "kableExtra"))
library(dplyr)
library(knitr)
library(readr)
library(stringr)
library(gt)
library(kableExtra)
```
Alternatively, you can download the individual datasets as a CSV or XLSX
file from the table below.
1. Click Download CSV. A window opens that displays the CSV in
your browser.
2. Right-click anywhere inside the window and select "Save Page As...".
3. Save the file in a folder of your choice.
```{r, echo=FALSE, message=FALSE, warning=FALSE}
extdata_path <- "https://github.com/openwashdata/ds4owdanalytics/raw/main/inst/extdata/"
read_csv("data-raw/dictionary.csv") |>
distinct(file_name) |>
dplyr::mutate(file_name = str_remove(file_name, ".rda")) |>
dplyr::rename(dataset = file_name) |>
mutate(
CSV = paste0("[Download CSV](", extdata_path, dataset, ".csv)"),
XLSX = paste0("[Download XLSX](", extdata_path, dataset, ".xlsx)")
) |>
knitr::kable()
```
## Data
The package provides access to multiple datasets. These are documented in the reference guide.
```{r}
library(ds4owdanalytics)
```
### course_participation
The dataset `course_participation` contains anonymized data about participation in the online session for the DS4OWD course It has
`r nrow(course_participation)` observations and `r ncol(course_participation)`
variables
```{r}
course_participation |>
head(3) |>
gt::gt() |>
gt::as_raw_html()
```
For an overview of the variable names, see the following table.
```{r echo=FALSE, message=FALSE, warning=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "course_participation.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling("striped") |>
kableExtra::scroll_box(height = "200px")
```
## Example
Examples can be found as a dashboard published at https://openwashdata.github.io/dashboard/dashboard.html
## License
Data are available as
[CC-BY](https://github.com/openwashdata/%7B%7B%7Bpackagename%7D%7D%7D/blob/main/LICENSE.md).
## Citation
Please cite this package using:
```{r}
citation("ds4owdanalytics")
```