Create new (joining) bs4Dash::column
create_new_column.Rd
Create new (joining) bs4Dash::column
Arguments
- data
a tibble or data.frame
- cols
cols to create new bs4Dash::column from (they will be pasted together with "-")
- new_name
new bs4Dash::column name
Examples
library(dplyr)
#>
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#>
#> filter, lag
#> The following objects are masked from ‘package:base’:
#>
#> intersect, setdiff, setequal, union
library(tidyr)
CompleteData <- dfdiffs::CompleteData
IncompleteData <- dfdiffs::IncompleteData
CompleteDataJoin <- create_new_column(data = CompleteData,
cols = c("subject", "record"),
new_name = "join_var")
IncompleteDataJoin <- create_new_column(data = IncompleteData,
cols = c("subject", "record"),
new_name = "join_var")