text_to_table: text_to_table() can take unstructure text, and turn into a...

View source: R/text_to_table.R

text_to_tableR Documentation

text_to_table() can take unstructure text, and turn into a long table. It was design to take Mplus variable section and produce a table where the second column is each of the included variables. However, this function could be use for other purposes.

Description

text_to_table() can take unstructure text, and turn into a long table. It was design to take Mplus variable section and produce a table where the second column is each of the included variables. However, this function could be use for other purposes.

Usage

text_to_table(x)

Arguments

x

a text input

Value

data frame where column one is the position of all variables, and the second column contain all the terms from the text input.

Examples


text_input <- "
IDCNTRY COUNTRY IDSTUD IDCLASS IDSCHOOL
IS2G05 IS2G07 IS2G09 IS2G10A IS2G10B
id_i id_k id_s id_j
"

text_to_table(text_input)


dacarras/r4sda documentation built on Nov. 9, 2023, 10:17 a.m.