conv_numscale | R Documentation |
Extract number scale from vector
conv_numscale(vec)
vec |
a character vector to extract number scales from |
Matches the regex pattern "^.*?\d"
. NA will return NA.
an integer vector
x <- data.frame(x = rep("1 - test", 10), y = rep("2- test", 10), z = rep(" 3 test", 10),
xx = rep("4 5", 10), yy = rep(NA, 10))
lapply(x , nsqipr:::conv_numscale)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.