| scanText | R Documentation |
Useful for converting data entered via a HTML textarea, for example, into a list or vector for further processing.
scanText(string, what = character(0), ...)
string |
A character string, typically numbers or words separated by white space |
what |
As for |
... |
Other arguments to be passed to |
A list or vector.
David Firth d.firth@warwick.ac.uk
scanText("A few short words")
as.numeric(scanText("1 2 3\n89 90"))
scanText("A B C \n 4 5 6", what = list("A", "A", "A", 0, 0, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.