readData: readData

Description Usage Arguments Details Examples

View source: R/classElementR_R6.R

Description

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

Usage

1
  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

1
2
3
4
5
## Read data based on its path "filePath"

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

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

elementR documentation built on Sept. 2, 2020, 5:07 p.m.