Learn R Programming

bpa (version 0.1.1)

get_pattern: Basic Pattern Analysis

Description

Perform a basic pattern analysis

Usage

get_pattern(x, show_ws = TRUE, ws_char = "w")
basic_pattern_analysis(x, unique_only = FALSE, show_ws = TRUE, ws_char = "w", useNA = c("no", "ifany", "always"), ...)
"basic_pattern_analysis"(x, unique_only = FALSE, show_ws = TRUE, ws_char = "w", useNA = c("no", "ifany", "always"), ...)
"basic_pattern_analysis"(x, unique_only = FALSE, show_ws = TRUE, ws_char = "w", useNA = c("no", "ifany", "always"), ...)
bpa(x, ...)

Arguments

x
A data frame or character vector.
show_ws
Logical indicating whether or not to show whitespace using a special character. Default is TRUE.
ws_char
Character string to use to depict whitespace when show_ws = TRUE.
unique_only
Logical indicating whether or not to only show the unique patterns. Default is TRUE.
useNA
Logical indicating whether to include NA values in the table. See table for details.
...
Additional optional arguments to be passed onto llply.

Examples

Run this code
basic_pattern_analysis(iris)
basic_pattern_analysis(iris, unique_only = TRUE)

Run the code above in your browser using DataLab