Description Usage Arguments Details Value Examples
View source: R/load-data.R View source: R/load-data copy.R
This function is a helper function to take a series of filter instructions
(from the filters.csv file) and uses them to filter a tibble of study
data.
1 | get.filtered(data, filts)
|
data |
The Tibble of Data from Study to be Filtered |
filts |
The list of file path(s) to |
This command writes an intermediate csv file to the working directory, named
filres.csv. This intermediate file stores the data about how many
subjects were filtered by each condition. This data is later used to create
consort diagrams.
returns a filtered tibble of study data. Does not do any error checking.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
filts <- '~/proteomics/filters.csv'
data <- haven::read_dta('~/proteomics/studydata.dta')
filtered.data <- get.filtered(data, filts)
OR
data <- haven::read_dta('~/proteomics/studydata.dta') %>%
get.filtered('~/proteomics/filters.csv')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.