stan_factor_count: Count the number of levels in a factor

Description Usage Arguments Examples

Description

This function counts the number of levels in a factor variable and is meant to be used in conjunction with to_stan_factor(). Note that both of these functions use addNA(), such that any exisiting NA values in the factor are grouped together and counted as a distinct factor level.

Usage

1

Arguments

factor

A factor.

Examples

1
stan_factor_count(my.factor)

eveskew/reskew documentation built on May 16, 2019, 7:10 p.m.