View source: R/file_utilities.R
| import_rb | R Documentation |
When available, the function reads the header of the packaged sample
(inst/extdata/sample_rb.csv) and keeps the first 404 columns by NAME
(plus the File.name/ID column), excluding any columns with names
appearing after position 404 in that header. If the sample is unavailable,
it falls back to keeping the first 404 columns by position.
import_rb(path)
path |
A string giving the path and filename to import. Keep the original CSV column names. IDs must be nonblank and unique; leading zeros are preserved. Rows are sorted by ID. |
A base data.frame with one row per record and the following columns:
ID (character): unique identifier of the text/essay.
One column per retained ReaderBench feature, kept by original
feature name (numeric). Feature names mirror the ReaderBench
output variables.
The object has class data.frame (or tibble if converted by the user).
predict_quality
# Fast, runnable example with package sample data
file_path <- system.file("extdata", "sample_rb.csv", package = "writeAlizer")
rb_file <- import_rb(file_path)
head(rb_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.