Skip to contents

This function processes different types of files and text input based on the dataset choice.

Usage

process_files(dataset_choice, file_info = NULL, text_input = NULL)

Arguments

dataset_choice

A character string indicating the dataset choice.

file_info

A data frame containing file information with a column named 'filepath' (default: NULL).

text_input

A character string containing text input (default: NULL).

Value

A data frame containing the processed data.

Examples

if (interactive()) {
  mydata <- TextAnalysisR::process_files(dataset_choice = "Upload an Example Dataset")
  head(mydata)

  file_info <- data.frame(filepath = "inst/extdata/SpecialEduTech.xlsx")
  mydata <- TextAnalysisR::process_files(dataset_choice = "Upload Your File",
                                          file_info = file_info)
  head(mydata)

  text_input <- paste0("The purpose of this study was to conduct a content analysis of ",
                       "research on technology use.")
  mydata <- TextAnalysisR::process_files(dataset_choice = "Copy and Paste Text",
                                          text_input = text_input)
  head(mydata)
}