bsep | R Documentation |
The function reads the first row and tests the following common separators by default:
';' '\t' ' ' '|' ':' ','
bsep(file, ntries = 10, separators = c(";", "\t", " ", "|", ":", ","))
file |
String. Name or full path to a file compatible with data.table::fread() |
ntries |
Numeric. Number of rows to check for |
separators |
Vector of strings. Additional uncommon delimiter to check for |
A string
file <- system.file('extdata', 'test.csv', package = 'bread')
## Checking the delimiter on the first 12 rows, including headers
bsep(file = file, ntries = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.