Description Usage Arguments Details Value Examples
Split elements of a character vector by the tab separator
1 | .splitByTab(x, firstRowToNames = TRUE, tab = "\\t")
|
x |
A character vector |
firstRowToNames |
logical Should the first element be used for column names |
tab |
character The string used torepresent the tab symbol |
This will split a vector into a data.frame checking that every line has the same number of separators. By default the first element will be set as the column names.
This is designed to take input from 'readLines()'
A data frame
1 2 3 | x <- c("ColA\tColB", "Value1\tValue2")
ngsReports:::.splitByTab(x, firstRowToNames = TRUE)
ngsReports:::.splitByTab(x, firstRowToNames = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.