df_view_nonnum {clinpubr} | R Documentation |
Show non-numeric elements in a data frame
Description
Shows the non-numeric elements in a data frame. Useful when setting the strategy to clean numeric values.
Usage
df_view_nonnum(
df,
max_count = 20,
random_sample = FALSE,
long_df = FALSE,
subject_col = NULL,
value_col = NULL
)
Arguments
df |
A data frame. |
max_count |
An integer. The maximum number of elements to show for each column.
If |
random_sample |
A logical value. If |
long_df |
A logical value. If |
subject_col |
A character string. The name of the column that contains the subject
identifier. Used when |
value_col |
A character string. The name of the column that contains the values.
Used when |
Value
A data frame of the non-numeric elements.
Examples
df <- data.frame(
x = c("1", "2", "3..3", "4", "6a"),
y = c("1", "ss", "aa.a", "4", "xx"),
z = c("1", "2", "3", "4", "6")
)
df_view_nonnum(df)