edf.char.to.num {edf} | R Documentation |
Convert string to a numeric.
Description
This function removes spaces from a string and converts it to a numeric. This is required when reading EDF data, since the data fields in the header are of fixed size, and extra whitespace must hence be trimmed.
Usage
edf.char.to.num(s)
Arguments
s |
The string to be converted |
Value
A numeric.
Examples
s <- "123 "
edf:::edf.char.to.num(s)
[Package edf version 1.0.0 Index]