readData: readData

View source: R/classElementR_R6.R

readDataR Documentation

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

## Read data based on its path "filePath"

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

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


charlottesirot/elementR documentation built on March 8, 2024, 5:13 a.m.