# Example factor vector with NA levels
factor_vec <- factor(c('apple', 'banana', NA, 'cherry', 'date', NA, 'fig', 'grape'), exclude = NULL)
# Get character frequencies (case-insensitive), excluding NA levels
ft_table(factor_vec)
# Include NA levels in the character frequencies
ft_table(factor_vec, include_na = TRUE)
Run the code above in your browser using DataLab