detect_delim: Automatically detect delimiters in a text file

Description Usage Arguments Value

View source: R/read_file.R

Description

This helper function was written expressly for set_physical to be able to automate its recordDelimiter argument.

Usage

1
detect_delim(path, nchar = 1000)

Arguments

path

(character) File to search for a delimiter

nchar

(numeric) Maximum number of characters to read from disk when searching

Value

(character) If found, the delimiter, it not, \r\n


Wang-Cankun/rDeepMAPS documentation built on Jan. 28, 2022, 7:10 a.m.