Learn R Programming

gespeR (version 1.4.2)

join: join

Description

Join a TargetRelations object and a Phenotype object

Usage

join(targets, phenotypes)

## S3 method for class 'TargetRelations,Phenotypes': join(targets, phenotypes)

Arguments

targets
A TargetRelations object.
phenotypes
A Phenotypes object.

Value

  • List containing the matched targets and phenotypes

Examples

Run this code
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)

Run the code above in your browser using DataLab