perm.dataStream.focal: Converts a data frame of individual associations into a group...

View source: R/perm.dataStream.focal.R

perm.dataStream.focalR Documentation

Converts a data frame of individual associations into a group by individual matrix.

Description

Converts a data frame of individual associations into a group by individual matrix.

Usage

perm.dataStream.focal(
  df,
  focal,
  scan,
  alters,
  nperm,
  progress = TRUE,
  method = "sri"
)

Arguments

df

a data frame in which to include a control column.

scan

a numeric or character vector representing one or more columns used as scan factors.

id

a numeric or character vector indicating the column holding ids of individuals.

Details

Control factors are used in permutation approaches to constrain their permutations.

Value

The same data frame input with an extra column named 'control', representing the control factors.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.