readtext (version 0.76)

sort_fields: Move text to the first column and set types to document variables

Description

Move text to the first column and set types to document variables

Usage

sort_fields(x, path, text_field, impute_types = TRUE)

Arguments

x

data.frame; contains texts and document variables

path

character; file path from which x is created; only use in error message

text_field

numeric or character; indicate position of a text column in x

impute_types

logical; if TRUE, set types of variables automatically