get_vector_answer: Convert Answer String to Vector

View source: R/format_questions.R

get_vector_answerR Documentation

Convert Answer String to Vector

Description

Converts an answer string into a vector using string_to_vector. If the input is NULL, it returns an empty string.

Usage

get_vector_answer(answer)

Arguments

answer

A character string representing the answer.

Value

A vector if the answer is successfully converted, or an empty string if the answer is NULL.


moodef documentation built on April 12, 2025, 1:42 a.m.