Learn R Programming

SNSequate (version 1.3.1)

pasted_table_to_df: Transform a table from String to Data Frame.

Description

The usual way to compare results is using tables from books. This method accept as input a pasted String, usually copied from a LaTeX table, and create a Data Frame. Assumes the input is separated evenly by a character, default is an empty space.

Usage

pasted_table_to_df(string, n_cols, sep = " ", header = TRUE)

Arguments

string

Input string

n_cols

Number of columns in the table

sep

Separator character

header

Have a header?

Value

data.frame