na9 | R Documentation |
Returns a number of useful character strings with varying amount of spaces prepended.
It can be used as na.strings=na9()
in read.table
.
na9(
nspace = 5,
base = c(-9999, -999, -9.99, -9.999),
sep = c(",", "."),
digits = 0:4,
more = NULL,
...
)
nspace |
number of spaces prepended. DEFAULT: 5 |
base |
Numeric: basic na.string numbers |
sep |
Separator string (comma or decimal point or both). DEFAULT: c(",",".") |
digits |
Number(s) of zeros to be appended. DEFAULT: 0:4 |
more |
More structures added to base, like "NA", "–". digits and sep is not added to this! DEFAULT: NULL |
... |
Arguments passed to nothing currently |
Character strings
Berry Boessenkool, berry-b@gmx.de, Jan 2016
paste
na9()
na9(nspace=0, sep=".")
na9(nspace=0, sep=".", more=c(NA,"-"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.