-
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 #43 from aim-rsf/description
Change installation instruction of the pkg
- Loading branch information
Showing
7 changed files
with
136 additions
and
60 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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
Package: browseMetadata | ||
Type: Package | ||
Title: Maps domains to varaibles within a dataset (SAIL databank) | ||
Title: Browses available metadata, to catergorise or label each variable in a dataset | ||
Version: 0.1.0 | ||
Authors@R: | ||
person("Rachael", "Stickland", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3398-4272")) | ||
Maintainer: Rachael Stickland <[email protected]> | ||
Description: This function will read in the meta-data of a dataset (DataClass) from the SAIL databank, obtained from https://modelcatalogue.cs.ox.ac.uk/hdruk_live/. | ||
It will loop through all the variable names, and ask you to categorise each variable into one of your chosen domains. | ||
The domains (or 'latent concepts') will appear up in the Plots tab for your reference, as well as information about the dataset. | ||
A log file will be saved with the categorizations you made. | ||
Description: This package currently contains one function, domain_mapping. | ||
This function takes two inputs. One input is a metadata file that has been downloaded in json format from modelcatalogue.cs.ox.ac.uk/hdruk_live. | ||
The second input is a csv file created by the user, that lists research domains of interest. | ||
The function will read in the metadata file for a chosen dataset, loop through all the variables, and ask the user to catergorise/label each variable as belonging to one or more domains. | ||
The domains will appear in the Plots tab and information about the dataset will be printed to the R console, for the user's reference in making these categorisations. | ||
A log file will be saved with the catergorisations made. To speed up this process, some auto-categorisations will be made by the function for commonly occurring variables; | ||
these should be verified by the user by checking the csv log file. Example inputs are provided within the package data, for the user to run this function in a demo mode. | ||
License: GPL (>= 3) | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.2.3 | ||
Depends: | ||
R (>= 2.10) | ||
Imports: | ||
cli, | ||
devtools, | ||
grid, | ||
gridExtra, | ||
rjson |
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(domain_mapping) | ||
import(cli) | ||
import(devtools) | ||
import(grid) | ||
import(gridExtra) | ||
import(rjson) | ||
importFrom(graphics,plot.new) | ||
importFrom(utils,read.csv) | ||
importFrom(utils,write.csv) |
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,11 @@ | ||
#' browseMetadata | ||
#' | ||
#' Browses available metadata, to catergorise/label each variable in a dataset. | ||
#' | ||
#' @import devtools grid gridExtra rjson cli | ||
#' @importFrom graphics plot.new | ||
#' @importFrom utils read.csv write.csv | ||
#' @keywords internal | ||
"_PACKAGE" | ||
|
||
NULL |
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
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.