Convert to best of numeric or character.
Convert data.frame columns to best of numeric or character.
Convert vector to best of numeric or character.
as.best(x, ...)# S3 method for data.frame
as.best(x, prefix = "#", ...)
# S3 method for default
as.best(x, prefix = "", na.strings = c(".", "NA", ""),
...)
vector or data.frame
passed to other methods
character to prepend to values in mixed numeric/character columns
strings to treat as NA
data.frame
data.frame
: data.frame method
default
: default method
Converts to numeric if doing so creates no new NA; otherwise to character.
Converts columns to numeric if doing so creates no new NA; otherwise to character. Number-like columns that are nevertheless character are prefixed by default to make this explicit when viewing only a few rows.
Converts vector to numeric if doing so creates no new NA; otherwise to character. Number-like vectors that are nevertheless character are prefixed by default to make this explicit when viewing only a few rows.
Other util: %contains%
,
enclose
, locf
,
padded
, parens
,
pool
, runhead
,
text2decimal
Other util: %contains%
,
enclose
, locf
,
padded
, parens
,
pool
, runhead
,
text2decimal
Other util: %contains%
,
enclose
, locf
,
padded
, parens
,
pool
, runhead
,
text2decimal