Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read_eprime

Read in a text file generated by Eprime


Description

Read in a text file generated by Eprime

Usage

read_eprime(filename, remove_clock = TRUE)

Arguments

filename

Either the full or relative path to an Eprime .txt file

remove_clock

Whether to exclude the Clock.Information XML entries. Enabled by default.

Details

The encoding on an Eprime txt file should be UCS-2 Little Endian, but sometimes this is not the case. We delegate the fussy encoding details to the stringi::str_read_lines function.

If the file is not an Eprime txt–that is, if it is missing the lines *** Header Start *** and *** Header End ***–a warning is raised and the lines of text are replaced by a dummy header.

Value

Each line of the file is stored and returned in a character vector.


rprime

Functions for Working with 'Eprime' Text Files

v0.1.2
GPL-2
Authors
Tristan Mahr [aut, cre] (<https://orcid.org/0000-0002-8890-5116>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.