extract_type_orientation {moodef}R Documentation

Extract Type and Orientation

Description

This function takes a string representing a question type and its optional orientation (e.g., "ordering<|>h") and splits it into two separate components: the type and the orientation. If the orientation is not provided, it defaults to "v".

Usage

extract_type_orientation(type)

Arguments

type

A character string indicating the type of a question, which may optionally include an orientation separated by "<|>". For example: "ordering<|>h", "ordering<|>v", or just "ordering".

Value

A list with two elements:

type

The main question type as a character string.

orientation

The orientation of the type as a character string. Defaults to "v".


[Package moodef version 1.2.0 Index]