loadFileContents | R Documentation |
This function loads the contents of a list of files and returns the contents as a list, each element being the content of a single file, in the same order. If a file could not be opened, a NULL value is used as the content. NA values are interpreted by default, but this behaviour can be turned off.
loadFileContents(x, naValues = "NA", outVect = FALSE)
x |
A character vector containing the paths of the files. |
naValues |
A character vector listing the content values to convert into NA value. Set to NULL to disable the interpretation of NA values. set to a different set of values to be interpreted. |
outVect |
If set to TRUE outputs a character vector (converting any NULL value into NA), otherwise outputs a list. |
A list with the contents of the files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.