Skip to content

Commit

Permalink
Change data description in YAML and pbc_database to pbc_data"
Browse files Browse the repository at this point in the history
  • Loading branch information
DougManuel authored and yulric committed Dec 11, 2024
1 parent 9e7c1ef commit f358bd3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#' \item{references}{references}
#' }
#' @source \url{https://cran.r-project.org/web/packages/survival/survival.pdf}
"pbc_database"
"pbc_data"

#' @rdname pbc_database
#' @rdname pbc_data
#' @format A data frame with 24 rows and 11 columns:
#' \describe{
#' \item{variable}{variable name}
Expand All @@ -38,7 +38,7 @@
#' }
"pbc_variables"

#' @rdname pbc_database
#' @rdname pbc_data
#' @format A data frame with 69 rows and 16 columns:
#' \describe{
#' \item{variable}{variable name}
Expand Down
6 changes: 3 additions & 3 deletions R/pbc_worksheets.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ library(yaml)
library(readr)
library(usethis)

# import the pbc_database.yaml file.
pbc_database <- read_yaml("inst/extdata/pbc_database.yaml")
usethis::use_data(pbc_database, overwrite = TRUE)
# import the pbc_data.yaml file.
pbc_data <- read_yaml("inst/extdata/pbc_data.yaml")
usethis::use_data(pbc_data, overwrite = TRUE)

# import the pbc_variables.csv file.
pbc_variables <- read_csv("inst/extdata/pbc_variables.csv")
Expand Down
6 changes: 3 additions & 3 deletions data-raw/prep_pbc_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ library(yaml)
library(readr)
library(usethis)

# import the pbc_database.yaml file.
pbc_database <- read_yaml("inst/extdata/pbc_database.yaml")
usethis::use_data(pbc_database, overwrite = TRUE)
# import the pbc_data.yaml file.
pbc_data <- read_yaml("inst/extdata/pbc_data.yaml")
usethis::use_data(pbc_data, overwrite = TRUE)

# import the pbc_variables.csv file
pbc_variables <- read_csv("inst/extdata/pbc_variables.csv",
Expand Down
2 changes: 1 addition & 1 deletion vignettes/derived_variables.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ data(tester1, variable_details, package = "recodeflow")

2) Recode the underlying variables (`chol` and `bili`) and the derived variable (`example_der`).
```{r, warning=FALSE}
derived1 <- rec_with_table(data = pbc_database,
derived1 <- rec_with_table(data = pbc_data,
variables = c("chol", "bili","example_der"),
variable_details = variable_details,
log = TRUE)
Expand Down

0 comments on commit f358bd3

Please sign in to comment.