Skip to content

Commit 7cec663

Browse files
author
Billy Mueller
committed
fixed whitespace merge_diftime
1 parent 8269c44 commit 7cec663

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

R/merge_diftime.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
#' # Checkout data ------------------------------------------------------------
5252
#' # Checkout census
5353
#' head(data_SLAM_census)
54-
#'
54+
#'
5555
#' # Checkout glucose
5656
#' head(data_SLAM_gluc)
57-
#'
57+
#'
5858
#' # Checkout nmr
5959
#' head(data_SLAM_nmr)
60-
#'
60+
#'
6161
#' # Create gluc --------------------------------------------------------------
6262
#' # join glucose and census for dob and other infor
6363
#' gluc <- dplyr::left_join(data_SLAM_gluc, data_SLAM_census, by = "idno")
@@ -81,7 +81,7 @@
8181
#' age_wk = difftime(date, dob, units = "weeks"),
8282
#' date = as.Date(date, "%m%d%Y")
8383
#' )
84-
#'
84+
#'
8585
#' # Create nmr ---------------------------------------------------------------
8686
#' # join nmr with census for dob and other info
8787
#' nmr <- dplyr::left_join(data_SLAM_nmr, data_SLAM_census, by = "idno")
@@ -104,7 +104,7 @@
104104
#' age_wk = difftime(date, dob, units = "weeks"),
105105
#' date = as.Date(date, "%m%d%Y")
106106
#' )
107-
#'
107+
#'
108108
#' # Use merge_diftime --------------------------------------------------------
109109
#' gluc_nmr <- merge_diftime(
110110
#' data1 = gluc,
@@ -114,7 +114,7 @@
114114
#' vars = c("bw", "lean", "fluid", "fat"),
115115
#' clean_vars = FALSE
116116
#' )
117-
#'
117+
#'
118118
#' # Checkout results
119119
#' head(gluc_nmr)
120120
#' } else {
@@ -201,7 +201,7 @@ merge_diftime <- function(data1,
201201
}
202202

203203
data.table::setorderv(dtm, cols = c(id1, "dif_ef"))
204-
204+
205205
dtm <- base::unique(dtm, by = c(eval(id1), eval(age1)))
206206

207207
# threshold

0 commit comments

Comments
 (0)