Learn R Programming

Trading (version 3.2)

OuterJoinMerge: Returns all possible combinations of two dataframes

Description

Returns all possible combinations of two dataframes

Usage

OuterJoinMerge(df_a, df_b)

Value

A dataframe with all combinations

Arguments

df_a

The first dataframe

df_b

The second dataframe

Author

Tasos Grivas <tasos@openriskcalculator.com>

Examples

Run this code

df_a = data.frame(matrix(seq(1,20),nrow = 5, ncol = 4))
df_b = data.frame(matrix(seq(21,40),nrow = 5, ncol = 4))
joined_df = OuterJoinMerge(df_a, df_b)

Run the code above in your browser using DataLab