Skip to contents

Return a named list with unique values of variables

Usage

vars_to_list(x, vars, nm = NULL)

Arguments

x

A data.table

vars

variable to be turn to attributes.

nm

variables for naming attributes

Value

a named list with unique values