powered by
Import a Coh-Metrix output file (.csv) into R.
import_coh(path)
A base data.frame with one row per record and the following columns:
data.frame
ID (character): unique identifier of the text/essay.
ID
character
One column per retained Coh-Metrix feature, kept by original feature name (numeric). Feature names mirror the Coh-Metrix output variables.
numeric
The object has class data.frame (or tibble if converted by the user).
tibble
A string giving the path and filename to import.
predict_quality
# Example with package sample data file_path <- system.file("extdata", "sample_coh.csv", package = "writeAlizer") coh_file <- import_coh(file_path) head(coh_file)
Run the code above in your browser using DataLab