has_header: Ensure the first line of a file has contains all of the...

View source: R/blast.R

has_headerR Documentation

Ensure the first line of a file has contains all of the expected columns.

Description

The order is not checked and the file may contain additional columns.

Usage

has_header(filename, expected_columns)

Arguments

filename

A file that may or may not have a header

expected_columns

A character vector of one or more strings that should appear in a header

Value

TRUE is the header looks OK, FALSE otherwise


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.