guess_sep: guess_sep

Description Usage Arguments Value

View source: R/tribble_paste.R

Description

Guesses the separator based on a simple heuristic over the first 10 or less rows: The separator chosen is the one that leads to the most columns, whilst parsing the same number of columns for each line (var=0). The guessing algorithm ignores blank lines - which are lines that contain only the separator. Options are in 'c(",","\t","\|",";")'

Usage

1
guess_sep(char_vec)

Arguments

char_vec

a table from the clipboard in character vector form.

Value

the separator selected to parse char_vec as a table


datapasta documentation built on April 17, 2020, 1:27 a.m.