readMatrix | R Documentation |
Read data matrix from a file, either tab-delimited, CSV, or semicolon-delimited.
readMatrix(file=NULL,d=1,h="auto",skip=0,output=1,check=T,genplot=F,verbose=T)
file |
An optional file name, which must be in quotes (use the full directory path if the file is not in your present working directory). When a file name is not specified (the default), the file will be selected using a graphical user interface. |
d |
What column delimiter is used? (0 = tab/.txt, 1 = comma/.csv, 2 = semicolon). 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. |
skip |
Number of lines to skip before beginning to read file |
output |
Return data as: 1= matrix, 2=data frame |
check |
Check for empty entries in the matrix? (T or F). |
genplot |
generate summary plots (T or F). |
verbose |
Verbose output? (T or F). |
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!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.