removeSelfLoops {diffloop} | R Documentation

## Remove self loops

### Description

`removeSelfLoops` removes instances where a loop is observed between the same anchor

### Usage

    removeSelfLoops(dlo)

    ## S4 method for signature 'loops'
    removeSelfLoops(dlo)

### Arguments

`dlo` | A loops object

### Details

This function removes loops from the `interactions` slot that reference the same index of the `anchors` slot.

### Value

A loops object

### Examples

    rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
    load(rda)
    jpn_unique <- removeSelfLoops(loops.small)

[Package diffloop version 1.12.0 Index]