test_range | R Documentation |
Test the range of a variable on a dataset
test_range( data, variable, type, categories = NULL, lower_value = NULL, upper_value = NULL )
data |
data to be tested. |
variable |
The variable to be tested. |
type |
String such as 'categorical', 'date' or 'numeric' |
categories |
Only to be filled if |
lower_value |
Only to be filled if |
upper_value |
Only to be filled if |
A data frame containing all the findings regarding the applied test.
test_range(als_data, 'onset', c('bulbar','respiratory', 'spinal'), type = 'categorical') test_range(als_data, 'age_at_baseline', lower_value = 20, upper_value = 100, type = 'numeric') test_range(als_data, 'age_at_onset', lower_value = 20, upper_value = 100, type = 'numeric') test_range(als_data, 'baseline_date', lower_value = '2000-01-01', upper_value = '2022-01-01', type = 'date') test_range(als_data, 'death_date', lower_value = '2000-01-01', upper_value = '2022-01-01', type = 'date')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.