allPairs: Make a Dataframe with all Combinations of Measurements Made...

View source: R/allPairs.R

allPairsR Documentation

Make a Dataframe with all Combinations of Measurements Made on a Single Person

Description

This is a crude little function to try to estimate all (N^2-N)/2 combinations of different measurements done on a single person. (Or (N^2-N), if doubled.)

Note that the code is built on the assumption that a "person" and "measurement" identifier are the first two columns of your dataset.

Usage

allPairs(pmRatingData)

Arguments

data

The data that will be transformed (should be in c(p,m,ratings...) format.)

Value

a dataframe where all possible pairwise combinations of different measurements are given on separate lines


funfield-lab/fancyr documentation built on Nov. 21, 2023, 2:42 p.m.