guess.wavelength | R Documentation |
character vectors used for names (e.g. colnames for matrices or data.frames)
are often treated by make.names
or similar functions that
produce suitable names (e.g. by prepending "X" to numbers.). Such names
cannot be directly converted to numeric.
guess.wavelength(X)
X |
character with numbers hidden inside |
guess.wavlength
tries to extract numbers from X which may be
surrounded by such "protecting" characters.
numeric
tmp <- data.frame(flu [[,, 400 ~ 410]])
(wl <- colnames (tmp))
guess.wavelength (wl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.