Learn R Programming

specmine (version 2.0.3)

read_dataset_dx: Read dataset from (J)DX files

Description

Reads the data from the (J)DX files and creates the dataset.

Usage

read_dataset_dx(folder.data, filename.meta = NULL, 
type = "undefined", description = "", label.x = NULL, 
label.values = NULL, header.col.meta = TRUE, 
header.row.meta = TRUE, sep.meta = ",")

Arguments

folder.data

string containing the path of the data folder.

filename.meta

name of the metadata file.

type

type of the data.

description

a short text describing the dataset.

label.x

the label for the x values.

label.values

the label for the y values.

header.col.meta

boolean value indicating if the metadata CSV file contains a header column with the name of the metadata variables.

header.row.meta

boolean value indicating if the metadata CSV file contains a header row with the name of the samples.

sep.meta

the separator character of the metadata file.

Value

Returns the dataset from the (J)DX files.

Examples

Run this code
# NOT RUN {
  ## Example of reading a dataset from (J)DX files
  dataset = read_dataset_dx("data", "metadata.csv", type = "nmr-spectra", 
	    description ="description of the dataset", label.x = "ppm", 
	    label.values = "intensity")
# }

Run the code above in your browser using DataLab