Learn R Programming

astrochron (version 0.3.1)

readMatrix: Read Data Matrix from File

Description

Read data matrix from a file, either tab-delimited or CSV.

Usage

readMatrix(d=1,h="auto",output=1,genplot=T)

Arguments

d
What column delimiter is used? (0 = tab/.txt, 1 = comma/.csv). CSV is the default option, which interfaces well with EXCEL.
h
Does the data file have column titles/headers? ("yes", "no", "auto"). "auto" will auto detect column titles/headers, which must be single strings and start with a character.
output
Return data as: 1= matrix, 2=data frame
genplot
generate summary plots (T or F).

Details

Missing values (in the file that you are reading from) should be indicated by 'NA'. If you have included characters in the column titles that are not permitted by R, they will be modified!