dt.makeExcludedDf: Given df-A & df-B, creates a new df which is the rows in A...

View source: R/make-excluded-df.R

dt.makeExcludedDfR Documentation

Given df-A & df-B, creates a new df which is the rows in A but not in B

Description

When writing a paper often we need to exclude various participants for various reasons. Then we will need a df with all of these excluded participants. This is one way to do it.

Usage

dt.makeExcludedDf(original_df, final_df, new_obj, type = "wide", conns = NULL)

Arguments

original_df

Dataframe containing the full sample

final_df

Dataframe containing the included sample

new_obj

Character specifying name for created serverside object.

type

Specifies type of dataframe in ‘original_df'. Either ’long' or 'wide'. NOTE NOT CURRENTLY FUNCTIONAL - ONLY WORKS FOR WIDE.

conns

DataSHIELD connections object.

Value

Creates a serverside dataframe containing the rows from 'original_df' that are not contained in 'final_df'


lifecycle-project/ds-helper documentation built on Oct. 27, 2023, 2:08 p.m.