View source: R/classElementR_R6.R
readData | R Documentation |
Read the content of an Excel (.xls and .xlsx), OpenOffice (.ods) and text (.csv) worksheet
readData(x, sep, dec)
x |
a character string corresponding to the path or name of the file to read |
sep |
a character string corresponding to the separator |
dec |
a character string corresponding to the decimal |
For the Excel and text format, readData
reads by default the first worksheet of the file and the one called "data" for the OpenOffice format.
## Read data based on its path "filePath"
filePath <- system.file("Example_Session/standards/Stand1.csv", package="elementR")
readData(filePath, sep = ";", dec = ".")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.