powered by
data.table
Create a data.table with all combinations of the supplied variables.
create_table(col_list, keys = NULL)
A named list of the variables you want in your data.table.
Character vector of one or more column names which is passed to setkey.
setkey
A data.table with all combinations of the variables supplied in col_list.
col_list
# NOT RUN { cols <- list(location = 1:2, time = 0:2, stream = 1:2) create_table(cols) # }
Run the code above in your browser using DataLab