Using the R scan function to read non-rectangular data (CC169)

December 6, 2021 • PD Schloss • 1 min read

The R scan function is key if you need to read in non-rectangular and any irregular shaped data. In this episode, Pat demonstrates scan’s arguments to read in a lower triangular phylip-formatted distance matrix. This is part of a series of videos demonstrating how to functions from base R to make these data compatible with tools from the tidyverse

A file with the simple distance matrix can be obtained here. The data were generated in our Kozich et al. 2013 paper using samples from the Schloss et al. 2012 paper.

Code

You can browse the state of the repository at the