create_named_list: Create a named list object with two vectors

View source: R/create_named_list.R

create_named_listR Documentation

Create a named list object with two vectors

Description

Input two vectors of the same length and return a named list.

Usage

create_named_list(x, y)

Arguments

x

Vector containing character strings, e.g. "A"

y

Vector containing values for the list, e.g. 1, 3

Examples

create_named_list(c("Alice","Bob","Carol"),c(54,60,23))

martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.