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