get_pattern {bpa}R Documentation

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"), ...)

## Default S3 method:
basic_pattern_analysis(x, unique_only = FALSE,
  show_ws = TRUE, ws_char = "w", useNA = c("no", "ifany", "always"), ...)

## S3 method for class 'data.frame'
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

basic_pattern_analysis(iris)
basic_pattern_analysis(iris, unique_only = TRUE)

[Package bpa version 0.1.1 Index]