create_number_series: create_number_series Create a number series from a vector of...

create_number_seriesR Documentation

create_number_series Create a number series from a vector of numbers including individual numbers and intervals such as c(1, "3-8", 11, "22-24")

Description

create_number_series Create a number series from a vector of numbers including individual numbers and intervals such as c(1, "3-8", 11, "22-24")

Usage

create_number_series(numbers_RAW, digits = 3)

Arguments

numbers_RAW

A vector of numbers or ranges'

digits

number of digits for the trialid's (3 by default)

Value

A character vector with numbers preceded by a 0, if needed

Examples

create_number_series(c(1, "3-8", 11, "22-24"))

gorkang/jsPsychHelpeR documentation built on Oct. 15, 2024, 8 a.m.