dssSuggestPivot: Suggest a formula for widening a dataframe

View source: R/dssPivot.R

dssSuggestPivotR Documentation

Suggest a formula for widening a dataframe

Description

Makes a crude attempt at guessing an appropriate widening formula to feed into dssPivot. The method is pretty basic, it should serve more as a starting point for further investigation

Usage

dssSuggestPivot(
  what,
  cols = NULL,
  by.col = NULL,
  async = TRUE,
  datasources = NULL
)

Arguments

what

a character name of the dataframe

cols

a vector of columns used in the formula. They must exist in 'what'. If null, all the columns from 'what' will be used.

by.col

typically the patient id, the column that will end up as key of the resulting 'wide' data.frame.

async

a logical, see datashield.aggregate

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.