Learn R Programming

retistruct (version 0.6.3)

read.datacounts: Read data counts in CSV format

Description

Read data counts from a file datacounts.csv in the directory dataset. The CSV file should contain two columns for every dataset. Each pair of columns must contain a unique name in the first cell of the first row and a valid colour in the second cell of the first row. In the remaining rows, the X coordinates of data counts should be in the first column and the Y coordinates should be in the second column.

Usage

read.datacounts(dataset)

Arguments

dataset

Path to directory containing dataponts.csv

Value

List containing

Ds

List of sets of data counts. Each set comprises a 2-column matrix and each set is named.

cols

List of colours for each dataset. There is one element that corresponds to each element of Ds and which bears the same name.