parse_char_resp: Convert character responses

View source: R/utils.R

parse_char_respR Documentation

Convert character responses

Description

Simple function converts character correctness to numeric one.

Usage

parse_char_resp(x, delim = "-", convert_numeric = TRUE)

Arguments

x

The character vector to be parsed.

delim

Delimiter used to join correctness when forming the character. Usually is hyphen (i.e., "-"), which is the default.

convert_numeric

A logical value indicating if the values should be converted to numeric ones.

Value

A list of the parsed result, the same length as the input vector.


psychelzh/dataproc.iquizoo documentation built on Oct. 20, 2024, 6:26 p.m.