add.linkinfo: Add links to the object

Description Usage Arguments Value Author(s) Examples

View source: R/functions.R

Description

adds one or several couples to either link or not-link relations recorded in the object.

Usage

1
2
## S4 method for signature 'linkinfo'
add(object, inda, indb, type=c("link", "notlink"), ...)

Arguments

object

a linkinfo class object

inda

indexes in 1:length(linkinfo) of the 1st elements in the couples to be added

indb

indexes in 1:length(linkinfo) of the 2nd elements in the couples to be added

type

the relation where the couples should be added, in c("link", "notlink")

...

unused additional arguments, for compliance with generic mechanism

Value

updated linkinfo object.

Author(s)

Pierrick Bruneau
pbruneau@gmail.com

Examples

1
2
3
4
5
6
data(iris)

krn <- computeKernel(iris[,1:4])
lk <- linkinfo(krn)
lk <- add(lk, 1, 5, "link")
lk <- add(lk, 3, 55, "notlink")

semisupKernelPCA documentation built on May 29, 2017, 8:59 p.m.