Skip to content

Commit

Permalink
added timepoint to lifespan
Browse files Browse the repository at this point in the history
  • Loading branch information
osorensen committed Apr 4, 2024
1 parent 47d0e5f commit 82e581a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
#' \item{domain}{Cognitive domain being measured. One of \code{"epmem"} for
#' episodic memory, \code{"wmem"} for working memory and \code{"execfun"} for
#' executive function/speed.}
#' \item{timepoint}{Integer indicating the timepoint number.}
#' \item{age}{Age of participant at the timepoint.}
#' \item{test}{The particular test at this observation.}
#' \item{y}{Response. For \code{"epmem"} and \code{"wmem"} this is the number
Expand Down
2 changes: 1 addition & 1 deletion data-raw/lifespan.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ lifespan <- tibble(
id = factor(id)
) %>%
ungroup() %>%
select(-nu, -timepoint) %>%
select(-nu) %>%
as.data.frame()

mm <- model.matrix(~ 0 + domain, data = lifespan)
Expand Down
Binary file modified data/lifespan.rda
Binary file not shown.
1 change: 1 addition & 0 deletions man/lifespan.Rd

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

0 comments on commit 82e581a

Please sign in to comment.