score: Score event codes with an event scale

Description Usage Arguments Details Value Author(s)

View source: R/events.R

Description

Gets scale scores for event codes

Usage

1
  score(eventscale, codes)

Arguments

eventscale

An event scale

codes

Event codes

Details

Returns an array of scores corresponding to the the second argument's scale values or the scale's default value if not recognized.

You should use this function to avoid relying on the internal structure of event scales. They are currently lists, but this may change.

Value

Numerical values for each event codes from the scale

Author(s)

Will Lowe


events documentation built on May 2, 2019, 10:21 a.m.