dftomat: dftomat

View source: R/RcppExports.R

dftomatR Documentation

dftomat

Description

Converts selected columns of data.frame to a matrix

Usage

dftomat(obj, cols)

Arguments

obj

data.frame

cols

character vector of columns to convert to matrix

Value

A matrix thedf <- data.frame(ID=rep(c('A', 'B'), length.out=10), A=sample(10), B=rnorm(10), C=sample(10)) dftomat(thedf, cols=c('A')) dftomat(thedf, cols=c('A', 'B')) dftomat(thedf, cols=c('A', 'B', 'C'))


jaredlander/distancethreshold documentation built on June 10, 2025, 1:56 a.m.