Skip to content

Commit

Permalink
pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMcCartan committed Mar 26, 2023
1 parent b3eeadc commit 846dddd
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
.Rdata
.httr-oauth
.DS_Store

docs
pkgdown

*.tmp
*.bak
*.swp
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# causaltbl 0.1.0

* Initial package release
* `causal_tbl` class which tracks causal-inference-related columns
* `causal_idx` type which can keep track of relationships between rows
2 changes: 2 additions & 0 deletions R/causal_idx.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ new_causal_idx <- function(x = list()) {
#' print(idx)
#' idx[1:2] # subsetting
#' idx[c(2, 1, 3)] # reordering
#'
#' @order 1
#' @export
causal_idx <- function(x = list()) {
# convert each element to an integer
Expand Down
1 change: 1 addition & 0 deletions R/causal_tbl.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ reconstruct.causal_tbl <- function(data, old) {
#' is_causal_tbl(data)
#' print(data)
#'
#' @order 1
#' @export
causal_tbl <- function(..., .outcome=NULL, .treatment=NULL) {
data = vctrs::df_list(...)
Expand Down
15 changes: 15 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
url: http://corymccartan.com/causaltbl/
template:
bootstrap: 5
reference:
- title: Causal data frames
contents:
- causal_tbl
- set_treatment
- set_outcome
- set_panel
- title: Special types
desc: '`vctrs`-friendly types that are useful for causal inference'
contents:
- causal_idx
- title: 'Extend `causal_tbl`'
desc: Developer-facing functions
contents:
- causal_cols

11 changes: 6 additions & 5 deletions man/causal_idx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/causal_tbl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/causaltbl-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 846dddd

Please sign in to comment.