Learn R Programming

comf (version 0.1.7)

cutTSV: Categorizing Thermal Sensation Votes

Description

cutTSV converts continuous thermal sensation votes to categorical ones.

Usage

cutTSV(pred)

Arguments

pred

a numeric item or vector containing continuous thermal sensation votes coded from -3 'cold' to +3 'hot'

Value

cutTSV returns an item or a vector with categorical thermal sensation votes.

Details

Categorization is realized with intervals closed on the right, e.g. setting all values lower and equal then -2.5 to a value of -3, higher than -2.5 and lower or equal -1.5 to -2, and so on.

Examples

Run this code
# NOT RUN {
## define example data
pred <- rnorm(5)

## bin values
cutTSV(pred)
# }

Run the code above in your browser using DataLab