set: Set Neighbors attribute generic.

Description Usage Arguments Value

View source: R/set.R

Description

set sets the attribute for the Neighbors 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.).


mPloenzke/bsnR documentation built on June 30, 2018, 9:11 a.m.