icc() efficiently calculates the ICC for a numeric data set.

icc(.x, method = c("r", "c"))

Arguments

.x

a data set

method

The method source: both the pure R and C++ versions are efficient

Value

a numeric vector of length 1

Examples

library(dplyr)
iris %>%
  select_if(is.numeric) %>%
  icc()
#> [1] -0.124838