bcolnames | R Documentation |
Simply reads the first line of a file with data.table::fread and the head Unix command. This allows analyzing big files that would not fit in memory (and cause an error such as 'cannot allocate vector of size').
bcolnames(file = NULL, ...)
file |
String. Name or full path to a file compatible with data.table::fread() |
... |
Arguments that must be passed to data.table::fread() like 'sep'. |
A character vector
file <- system.file('extdata', 'test.csv', package = 'bread')
## Retrieving the column names
bcolnames(file = file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.