11.2 On data frames or matrices

  • Read in a file into a data frame with the read.table function:

You can convert it as a matrix, if needed, with:

Useful arguments:

  • Write a data frame or matrix to a file:

Useful arguments:

  • Note that \t stands for tab-delimitation