Skip to contents

Frequency table of the semicolon-delimited keyword tags written by the parser into mental_health_or_race_indications. The parser scans narratives against a closed vocabulary (see morie.siu._parser._MH_RACE_KEYWORDS); this analysis tallies those tags across the case corpus.

Usage

morie_siu_mental_health_race_indicators(data = NULL)

Arguments

data

Either a data frame (e.g. the output of morie_fetch_siu() read in) or a path to SIU_by_case.csv. NULL (the default) looks in file.path(tempdir(), "morie", "siu", "SIU_by_case.csv").

Value

A morie_rich_result list, including a warning noting that keyword-presence is a signal, not a verdict.

Examples

df <- data.frame(
  mental_health_or_race_indications = c("mental health; Indigenous", "",
                                        "racial", "mental health; Black"))
r <- morie_siu_mental_health_race_indicators(df)
r$tables[[1]]$rows
#> $`mental health`
#> $`mental health`[[1]]
#> [1] "mental health"
#> 
#> $`mental health`[[2]]
#> [1] 2
#> 
#> 
#> $Indigenous
#> $Indigenous[[1]]
#> [1] "Indigenous"
#> 
#> $Indigenous[[2]]
#> [1] 1
#> 
#> 
#> $racial
#> $racial[[1]]
#> [1] "racial"
#> 
#> $racial[[2]]
#> [1] 1
#> 
#> 
#> $Black
#> $Black[[1]]
#> [1] "Black"
#> 
#> $Black[[2]]
#> [1] 1
#> 
#>