guess_sep: guess_sep

View source: R/tribble_paste.R

guess_sepR Documentation

guess_sep

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

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


MilesMcBain/datapasta documentation built on May 5, 2022, 8:56 a.m.