define: Define or redefine elements of a list

Description Usage Arguments

View source: R/verbs-storage.R

Description

This function takes a list of objects or a data frame and changes their contents. It discards all elements that are not mentioned in ..., leaving a clean list of inputs for your models.

Usage

1
2
3
4
5
6
7
8
9
define(.data, ...)

define_(.data, ..., .dots)

## S3 method for class 'list'
define_(.data, ..., .dots)

## S3 method for class 'data.frame'
define_(.data, ..., .dots)

Arguments

.data

A list or data frame.

...

Variables to keep and new definitions.


lionel-/gsim documentation built on May 21, 2019, 6:41 a.m.