50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

itol.toolkit (version 1.1.7)

line_clean: Filter out comments and empty lines

Description

Remove the lines start with # or without any information.

Usage

line_clean(lines = NULL, file = NULL)

Value

a vector of character strings

Arguments

lines

a vector of character strings. The strings are containing the lines of template file. If the file parameter is NULL, this parameter should be set.

file

a character specifying the template file path. If this parameter is setted, the lines parameter will be replaced.

Examples

Run this code
strs <- c("#comment","DATA")
line_clean(lines=strs)

Run the code above in your browser using DataLab