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

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

dh.makeExcludedDfR Documentation

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

Description

[Deprecated]

Often we need to exclude participants in an analysis. This function created a dataframe containing participants in original_df but not in final_df. It was deprecated because you can now use dsTidyverseClient::ds.filter, which is much quicker and more flexible.

Usage

dh.makeExcludedDf(
  original_df,
  final_df,
  id_var = "child_id",
  new_obj,
  type = "wide",
  conns = NULL
)

Arguments

original_df

Dataframe containing the full sample

final_df

Dataframe containing the included sample

id_var

Character giving the name of the column within df which uniquely identifies each subject.

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-cs-functions documentation built on Nov. 18, 2024, 3:36 p.m.