powered by
Initialize design matrices from dataframe to cluster
init_design_matrices(formula, df, col_id = "id")
A character formula with target variable and predictor variables
A dataframe to cluster
A character value corresponding to name of id column in the dataframe df
result_list A list containing the df filter by id levels, the design matrices filter by id levels, the number of rows for df filter by id levels
# NOT RUN { init_design_matrices("ctr~timeSlot",adcampaign,"id") # }
Run the code above in your browser using DataLab