select_spl: select_spl

Description Usage Arguments Details Value Author(s)

View source: R/select_spl.R

Description

Help function to split a df into two disjunct dfs

Usage

1
select_spl(df, .dots, odf = "odf")

Arguments

df

A data.frame to split

.dots

A string of variables to select (which has to be conform to inpute epected by select_).

odf

Name of a newly created other df with the variables not matching. Defaulting to 'odf' short for other data.frame.

Details

select_spl splits a data.frame into two, one containing some specified variables and one not containing some variables. Like dplyr::select it returns the df with matching columns but additionally writes the other non-matching columns to a object in the calling environment. This is a potentially destructive function for its sideeffect of creating other.df.

Value

The data.frame with matchin columns.

Author(s)

Marc Schwenzer


mschwenzer/blueprint documentation built on Nov. 4, 2019, 8:30 p.m.