Skip to content

Commit

Permalink
fix typos in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyriederer committed Apr 10, 2021
1 parent 519e139 commit 87149b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ This package enables us to similarly write `dbt` data models with commands like:

```
{% set cols = dbtplyr.get_column_names( ref('mydata') ) %}
{% set cols_n = dbtplyr.starts_with(cols, 'N') %}
{% set cols_ind = dbtplyr.starts_with(cols, 'IND') %}
{% set cols_n = dbtplyr.starts_with('N', cols) %}
{% set cols_ind = dbtplyr.starts_with('IND', cols) %}
select
Expand All @@ -45,11 +45,10 @@ so that it is only compiled to SQL when relevant by using the `final_comma` para
Note that, slightly more `dplyr`-like, you may also write:

```
select
{{ dbtplyr.across(dbtplyr.starts_with( ref('mydata'), 'N'), "sum({{var}}) as {{var}}_tot") }},
{{ dbtplyr.across(dbtplyr.starts_with( ref('mydata'), 'IND'), "mean({{var}}) as {{var}}_avg") }}
{{ dbtplyr.across(dbtplyr.starts_with('N', ref('mydata')), "sum({{var}}) as {{var}}_tot") }},
{{ dbtplyr.across(dbtplyr.starts_with('IND', ref('mydata')), "mean({{var}}) as {{var}}_avg") }}
from {{ ref('mydata') }}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-10T16:34:29.098527Z", "invocation_id": "f93997f0-a5c3-431b-b3d4-2ff0daecc398", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-10T16:37:46.220893Z", "invocation_id": "02c1793a-12e3-403e-94f3-88d1e09499b8", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions models/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ This package enables us to similarly write `dbt` data models with commands like:
```
{% raw %}
{% set cols = dbtplyr.get_column_names( ref('mydata') ) %}
{% set cols_n = dbtplyr.starts_with(cols, 'N') %}
{% set cols_ind = dbtplyr.starts_with(cols, 'IND') %}
{% set cols_n = dbtplyr.starts_with('N', cols) %}
{% set cols_ind = dbtplyr.starts_with('IND', cols) %}
select
Expand Down Expand Up @@ -54,8 +54,8 @@ Note that, slightly more `dplyr`-like, you may also write:
{% raw %}
select
{{ dbtplyr.across(dbtplyr.starts_with( ref('mydata'), 'N'), "sum({{var}}) as {{var}}_tot") }},
{{ dbtplyr.across(dbtplyr.starts_with( ref('mydata'), 'IND'), "mean({{var}}) as {{var}}_avg") }}
{{ dbtplyr.across(dbtplyr.starts_with('N', ref('mydata')), "sum({{var}}) as {{var}}_tot") }},
{{ dbtplyr.across(dbtplyr.starts_with('IND', ref('mydata')), "mean({{var}}) as {{var}}_avg") }}
from {{ ref('mydata') }}
{% endraw %}
Expand Down

0 comments on commit 87149b3

Please sign in to comment.