Skip to contents

Checks that the provided data is a dataframe and that it has all the expected columns based on the content group identifier

Usage

check_data(data, content_group_id)

Arguments

data

Pre-wrangled Dataframe.

content_group_id

Code that identifies the content found in EPHT documentation.

Value

list containing exit status code and success/failure message

Examples

check_data(mtcars, "AS-HOSP")
#> $code
#> [1] 1
#> 
#> $message
#> Danger: dataframe_structure does not have allowable value/s
#> Troublemakers: variables
#>