Description Usage Arguments Details Value Author(s)
Help function to split a df into two disjunct dfs
1 | select_spl(df, .dots, odf = "odf")
|
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. |
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.
The data.frame with matchin columns.
Marc Schwenzer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.