readList | R Documentation |
Import data arranged on lines into a list.
readList(file, names = TRUE, sep = "", nlines = 1, convert = NULL)
file |
a character string specifying the name of the file. |
names |
logical, if |
sep |
the separator character for the data in each line. If a blank string (the default), then any white space is taken as the separator. |
nlines |
the number of lines that represent a single collection of data, |
convert |
character string indicating how to convert the data. Must be
a valid value for the |
A list with one component for each nlines
in the input file.
as
# Make a 3-line example dataset with component names A, B, and C. cat("A 1 2 3 4\nB 5 6 7\nC 8 9\n", file="readList.test") # Read the example dataset readList("readList.test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.