-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from aim-rsf/doc_data
add documentation for package data
- Loading branch information
Showing
12 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' List of domains | ||
#' | ||
#' A simplified list of domains, to demo the function domain_mapping.R \cr \cr | ||
#' This data was created with these two steps: | ||
#' \enumerate{ | ||
#' \item \code{domain_list <- read.csv('browseMetadata/data-raw/domain_list_demo.csv')} | ||
#' \item \code{usethis::use_data(domain_list)} | ||
#' } | ||
#' @docType data | ||
# | ||
#' @usage data(domain_list) | ||
#' | ||
#' @format A data frame with 5 rows and 1 column | ||
#' | ||
#' @source The csv was manually created | ||
"domain_list" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#' Json metadata file | ||
#' | ||
#' Example metadata for a health dataset, to demo the function domain_mapping.R \cr \cr | ||
#' This data was created with these five steps: | ||
#' \enumerate{ | ||
#' \item Go to https://modelcatalogue.cs.ox.ac.uk/hdruk_live/#/catalogue/dataModel/17e86f3f-ec29-4c8e-9efc-8793a74b107d | ||
#' \item Download json metadata file by selecting the 'Export as JSON' option on the download button | ||
#' \item \code{install.packages("rjson")} | ||
#' \item \code{json_metadata <- rjson::fromJSON(file = '/browseMetadata/data-raw/maternity_indicators_dataset_(mids)_20240105T132210.json')} | ||
#' \item \code{usethis::use_data(json_metadata)} | ||
#' } | ||
#' | ||
#' @docType data | ||
# | ||
#' @usage data(json_metadata) | ||
#' | ||
#' @format Nested lists | ||
#' | ||
#' @source https://modelcatalogue.cs.ox.ac.uk/hdruk_live/#/catalogue/dataModel/17e86f3f-ec29-4c8e-9efc-8793a74b107d | ||
"json_metadata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Domain_Name | ||
"Socioeconomic factors" | ||
"Location" | ||
"Education" | ||
"Health" | ||
"Parental Information" |
1 change: 1 addition & 0 deletions
1
data-raw/maternity_indicators_dataset_(mids)_20240105T132210.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.