Skip to content

Commit

Permalink
redundunt argument row.names are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
seokhoonj committed May 14, 2024
1 parent fe4c842 commit fce3da8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ meta.data.frame <- function(x) {
distinct <- sapply(x, unilen)
mode <- sapply(x, function(s) mostfreq(s, na.rm = TRUE))
df <- data.table(column, class, type, n, missing, zero, distinct,
prop = 1 - missing/nrows, nzprop = 1 - zero/nrows,
mode, row.names = NULL)
prop = 1 - missing/nrows, nzprop = 1 - zero/nrows, mode)
data.table::setattr(df, "class", c("meta", class(df)))
return(df)
}
Expand Down

0 comments on commit fce3da8

Please sign in to comment.