read_data_frame: Read a data frame

View source: R/read_data_frame.R

read_data_frameR Documentation

Read a data frame

Description

Make a data frame from a comma-separated vector (CSV) file. The file is read as a table with rows for witnesses and columns for variation sites. The first column is taken to be witness names and the first row to be variation site identifiers. Table elements are treated as factors. Consequently, the only meaningful result of comparing two elements in a column is whether they match.

Usage

read_data_frame(fn)

Arguments

fn

A file name, which can be a URL.

Details

This is a wrapper for utils::read.csv.

Value

A data frame.

Examples

x <- read_data_frame("https://zenodo.org/record/6466262/files/Mark.UBS4.csv")


tjfinney/ANTTV documentation built on July 1, 2024, 11 p.m.