Learn R Programming

elementR (version 1.3.7)

readData: readData

Description

Read the content of an Excel (.xls and .xlsx), OpenOffice (.ods) and text (.csv) worksheet

Usage

readData(x, sep, dec)

Arguments

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

Details

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.

Examples

Run this code
# NOT RUN {
## Read data based on its path "filePath"

filePath <- system.file("Example_Session/standards/Stand1.csv", package="elementR")

readData(filePath, sep = ";", dec = ".")

# }

Run the code above in your browser using DataLab