join {gespeR} | R Documentation

## join

### Description

Join a TargetRelations object and a Phenotype object

### Usage

    join(targets, phenotypes)

    ## S4 method for signature 'TargetRelations,Phenotypes'
    join(targets, phenotypes)

### Arguments

`targets` | A `TargetRelations` object.
`phenotypes` | A `Phenotypes` object.

### Value

List containing the matched targets and phenotypes

### Author(s)

Fabian Schmich

### Examples

    phenos <- Phenotypes(system.file("extdata", "Phenotypes_screen_A.txt", package = "gespeR"),
    type = "SSP",
    col.id = 1,
    col.score = 2)
    trels <- TargetRelations(readRDS(system.file("extdata", "TR_screen_A.rds", package = "gespeR")))
    phenos <- phenos[1:17]
    stripped_down <- join(targets = trels, phenotypes = phenos)

[Package gespeR version 1.16.0 Index]