Learn R Programming

picante (version 0.7-1)

utility: Picante utility functions

Description

Picante utility functions for tree and data manipulation

Usage

df2vec(x, colID=1)
internal2tips(phy, int.node, return.names = FALSE)
node.age(phy)
pic.variance(x, phy, scaled = TRUE)
sortColumns(x)
sortRows(x)
taxaShuffle(x)
tipShuffle(phy)

Arguments

phy
phylo object
x
A data.frame, matrix or dist object
colID
Numeric or character ID of column to include
int.node
internal node number
return.names
TRUE or FALSE
scaled
Scale contrasts by branch length
...
Additional arguments

Value

  • df2vecA named vector
  • internal2tipsVector of tips descended from a node
  • node.agePhylo object with phylo$ages vector of node ages corresponding to phylo$edge
  • pic.varianceVariance of independent contrasts
  • sortColumnsA data.frame or matrix with columns sorted by name
  • sortRowsA data.frame or matrix with rows sorted by name
  • taxaShuffleMatrix with taxa names shuffled
  • tipShufflePhylo object with taxa names shuffled

Details

Various utility functions for manipulating trees, data, etc.