Learn R Programming

comf (version 0.1.12)

cutTSV: Categorizing Thermal Sensation Votes

Description

cutTSV converts continuous thermal sensation votes to categorical ones.

Usage

cutTSV(pred)

Value

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

Arguments

pred

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

Author

Marcel Schweiker

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
## define example data
pred <- rnorm(5)
## bin values
cutTSV(pred)

Run the code above in your browser using DataLab