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

listify

Convert a vector of colon-separated text lines into a list of named elements


Description

Convert a vector of colon-separated text lines into a list of named elements

Usage

listify(colon_sep_xs)

Arguments

colon_sep_xs

a character vector with lines of the form "key: value"

Details

Some minor cleaning of the input is performed:

  • Lines without a colon-space separator ": " are filtered out.

  • Once the strings are split at the separator, white-space on the left and right sides of each half-string is omitted.

Value

a named list of the values in the colon-separated lines. "key: value" yields list(key = "value")


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.