set: Set attribute generic.

Description Usage Arguments Value

View source: R/set.R

Description

set sets the attribute for the object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set(object, attr, val)

## S3 method for class 'Neighbors'
set(object, attr, val)

## S3 method for class 'Blocks'
set(object, attr, val)

## S3 method for class 'Scores'
set(object, attr, val)

Arguments

object

object to be updated.

attr

Character input. The attribute to update (e.g. 'rawData', 'ID')

val

The new values to add or update. For attributes 'Neighbors' and 'keysUsed', set will concatenate the values. Otherwise old values will be replaced.

Value

object of same class (Neighbors, Blocks, etc.).


bayesmendel/snipR documentation built on Jan. 25, 2022, 12:33 a.m.