scan_dbl | R Documentation |
A lightweight wrapper around the standard scan()
function.
scan_dbl(con, n = 1, quiet = TRUE, ...)
scan_int(con, n = 1, quiet = TRUE, ...)
scan_str(con, n = 1, quiet = TRUE, ...)
con |
Connection object or raw vector. Connection objects can be
created with |
n |
Number of elements to read. Default: 1 |
quiet |
Default: TRUE |
... |
further arguments passed to |
These functions are useful when the numeric values are encoded as strings written
to the file, rather than as binary data. Values must be delimited
by whitespace or other specified separator. See documentation for
scan()
for more information.
Value of the given type
Other data input functions:
read_f64()
,
read_hex()
,
read_raw()
,
read_str()
,
read_uint8()
con <- textConnection(r"(
type
20 30
3.14159
)")
scan_str(con)
scan_int(con)
scan_int(con)
scan_dbl(con)
close(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.