ConvertSatisfactionScoreToNumber: Convert a character to a number

Description Usage Arguments Details Author(s)

Description

This function converts the satisfaction_score from a

character value into a numeric value $scoreNumber that can be used

in regression or in other ways.

Usage

1

Arguments

dF

The dataFrame for which to convert satisfaction_score into a

number.

Details

Values for satisfaction_score include Good,

Not Offered, Offered, and Bad. This function converts

Good values into the numeric 4, Bad into 1, and

the others to NA values.

If all values for satisfaction_score are NA, then

the resulting $scoreNumber will be filled with NA values.

Author(s)

Steven H. Ranney

Contact: Steven.Ranney@gmail.com

Steven Ranney


stevenranney/ispiranteRanney documentation built on May 30, 2019, 4:46 p.m.