Learn R Programming

retistruct (version 0.5.9)

read.datapoints: Read data points in CSV format

Description

Read data points from a file dataponts.csv in the directory dataset. The CSV 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 points should be in the first column and the Y coordinates should be in the second column.

Usage

read.datapoints(dataset)

Arguments

dataset
Path to directory containing dataponts.csv

Value

  • List containing
  • DsList of sets of datapoints. Each set comprises a 2-column matrix and each set is named.
  • colsList of colours for each dataset. There is one element that corresponds to each element of Ds and which bears the same name.