Learn R Programming

propr (version 3.1.8)

pals: Calculate PALs for Pairs

Description

This function finds the Popular Adjacent Ligand or Self (PALs) for each feature in the @theta slot of a propd object. Specifically, we define PALs as the adjacent node with the highest amount of connectivity. If node itself has more connectivity than any of its neighbors, it is its own PAL.

Usage

pals(object, k)

Arguments

object

A propd object.

k

An integer. The maximum number of PALs to index when calculating pals in the network.

Value

A named vector of PALs, ordered by decreasing connectivity of the input nodes. The names of the result refer to the input nodes themselves.