powered by
The function reads the first row and tests the following common separators by default: ';' '\t' ' ' '|' ':' ','
';' '\t' ' ' '|' ':' ','
bsep(file, ntries = 10, separators = c(";", "\t", " ", "|", ":", ","))
A string
String. Name or full path to a file compatible with data.table::fread()
Numeric. Number of rows to check for
Vector of strings. Additional uncommon delimiter to check for
file <- system.file('extdata', 'test.csv', package = 'bread') ## Checking the delimiter on the first 12 rows, including headers bsep(file = file, ntries = 12)
Run the code above in your browser using DataLab