check_flatline: Returns the max percentage of responses that are the same per...

View source: R/check_flatline.R

check_flatlineR Documentation

Returns the max percentage of responses that are the same per row.

Description

Returns the max percentage of responses that are the same per row. The closer this return value is to 1, the more serious the flatline problem is for that row.

Usage

check_flatline(myvar)

Arguments

myvar

must be a numeric vector to operate on.

Examples

mydf <- data.frame(col1=c(1,2,3),col2=c(1,3,2),col3=c(1,2,1))
check_flatline(mydf$col1)

PrenolanM/rsegmenter documentation built on Aug. 7, 2022, 8:56 p.m.