as.best.default | R Documentation |
Convert vector to best of numeric or character.
## Default S3 method:
as.best(x, prefix = "", na.strings = c(".", "NA", ""), ...)
x |
default |
prefix |
prefix for viewing numerics |
na.strings |
strings that should be treated as NA |
... |
ignored |
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%()
,
as.best()
,
enclose()
,
locf()
,
padded()
,
parens()
,
pool()
,
runhead()
,
text2decimal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.