|
1 |
| -# dm_filter() deprecations |
2 |
| - |
3 |
| - Code |
4 |
| - dm_filter(dm_for_filter(), tf_1, a > 4) |
5 |
| - Condition |
6 |
| - Warning: |
7 |
| - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
8 |
| - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. |
9 |
| - Output |
10 |
| - -- Metadata -------------------------------------------------------------------- |
11 |
| - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` |
12 |
| - Columns: 20 |
13 |
| - Primary keys: 6 |
14 |
| - Foreign keys: 5 |
15 |
| - -- Filters --------------------------------------------------------------------- |
16 |
| - tf_1: a > 4 |
17 |
| - Code |
18 |
| - dm_filter(dm = dm_for_filter(), tf_1, a > 4) |
19 |
| - Condition |
20 |
| - Warning: |
21 |
| - The `dm` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
22 |
| - Please use the `.dm` argument instead. |
23 |
| - Warning: |
24 |
| - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
25 |
| - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. |
26 |
| - Output |
27 |
| - -- Metadata -------------------------------------------------------------------- |
28 |
| - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` |
29 |
| - Columns: 20 |
30 |
| - Primary keys: 6 |
31 |
| - Foreign keys: 5 |
32 |
| - -- Filters --------------------------------------------------------------------- |
33 |
| - tf_1: a > 4 |
34 |
| - Code |
35 |
| - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_apply_filters() |
36 |
| - Condition |
37 |
| - Warning: |
38 |
| - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
39 |
| - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. |
40 |
| - Output |
41 |
| - -- Metadata -------------------------------------------------------------------- |
42 |
| - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` |
43 |
| - Columns: 20 |
44 |
| - Primary keys: 6 |
45 |
| - Foreign keys: 5 |
46 |
| - Code |
47 |
| - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_apply_filters() |
48 |
| - Condition |
49 |
| - Warning: |
50 |
| - `dm_apply_filters()` was deprecated in dm 1.0.0. |
51 |
| - Calling `dm_apply_filters()` after `dm_filter()` is no longer necessary. |
52 |
| - Output |
53 |
| - -- Metadata -------------------------------------------------------------------- |
54 |
| - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` |
55 |
| - Columns: 20 |
56 |
| - Primary keys: 6 |
57 |
| - Foreign keys: 5 |
58 |
| - Code |
59 |
| - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_apply_filters_to_tbl(tf_2) |
60 |
| - Condition |
61 |
| - Warning: |
62 |
| - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
63 |
| - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. |
64 |
| - Output |
65 |
| - # A tibble: 3 x 4 |
66 |
| - c d e e1 |
67 |
| - <chr> <int> <chr> <int> |
68 |
| - 1 worm 5 G 7 |
69 |
| - 2 dog 6 E 5 |
70 |
| - 3 cat 7 F 6 |
71 |
| - Code |
72 |
| - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_apply_filters_to_tbl(tf_2) |
73 |
| - Condition |
74 |
| - Warning: |
75 |
| - `dm_apply_filters_to_tbl()` was deprecated in dm 1.0.0. |
76 |
| - Access tables directly after `dm_filter()`. |
77 |
| - Output |
78 |
| - # A tibble: 3 x 4 |
79 |
| - c d e e1 |
80 |
| - <chr> <int> <chr> <int> |
81 |
| - 1 worm 5 G 7 |
82 |
| - 2 dog 6 E 5 |
83 |
| - 3 cat 7 F 6 |
84 |
| - Code |
85 |
| - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_get_filters() |
86 |
| - Condition |
87 |
| - Warning: |
88 |
| - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. |
89 |
| - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. |
90 |
| - Output |
91 |
| - # A tibble: 1 x 3 |
92 |
| - table filter zoomed |
93 |
| - <chr> <list> <lgl> |
94 |
| - 1 tf_1 <language> FALSE |
95 |
| - Code |
96 |
| - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_get_filters() |
97 |
| - Condition |
98 |
| - Warning: |
99 |
| - `dm_get_filters()` was deprecated in dm 1.0.0. |
100 |
| - Filter conditions are no longer stored with the dm object. |
101 |
| - Output |
102 |
| - # A tibble: 0 x 3 |
103 |
| - # ... with 3 variables: table <chr>, filter <list>, zoomed <lgl> |
104 |
| - |
105 | 1 | # data structure
|
106 | 2 |
|
107 | 3 | Code
|
|
223 | 119 | Code
|
224 | 120 | dm_for_filter_rev() %>% dm_filter(tf_1 = a < 8 & a > 3) %>% dm_get_tables() %>%
|
225 | 121 | map(harmonize_tbl)
|
| 122 | + Condition |
| 123 | + Warning: |
| 124 | + Autoincrementing columns not yet supported for DuckDB, these won't be set in the remote database but are preserved in the `dm` |
226 | 125 | Output
|
227 | 126 | $tf_6
|
228 | 127 | # A tibble: 2 x 3
|
|
0 commit comments