Description Usage Arguments Details See Also Examples
Populate sample DW data. By default star, see scenario
arg for others.
1 2 | dw.populate(N = 1e+05, K = 100, S = 1, scenario = "star",
setkey = TRUE, verbose = getOption("dwtools.verbose"))
|
N |
integer facts volume |
K |
groups size |
S |
integer used in set.seed |
scenario |
character in |
setkey |
logical used only for scenario |
verbose |
integer print sub statuses |
The following case scenario="denormalize"
will invoke lookup for full columns set in all the dimensions. On the real data it is advised to use scenario="star"
and later denormalize using joinbyv function where you can provide subsets of columns on each lookup.
joinbyv
1 2 3 4 5 6 7 8 9 10 | suppressPackageStartupMessages(library(dwtools))
X = dw.populate() # scenario="star"
lapply(X, head)
Z = dw.populate(scenario="denormalize")
print(Z)
SALES = dw.populate(scenario="fact")
print(SALES)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.