Skip to content

Commit d48a05d

Browse files
committed
Fix add_onset
1 parent 667eebf commit d48a05d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/add_onset.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#' \item{"Onset_latest": }{The latest age of onset.}
3838
#' }
3939
#' @export
40-
#' @importFrom data.table merge.data.table
40+
#' @importFrom data.table merge.data.table=
4141
#' @examples
4242
#' phenos <- example_phenos()
4343
#' phenos2 <- add_onset(phenos = phenos)
@@ -49,7 +49,7 @@ add_onset <- function(phenos,
4949
verbose = TRUE){
5050

5151
# devoptera::args2vars(add_onset)
52-
Onset_latest <- Onset_score <- NULL;
52+
Onset_latest <- Onset_score <- Onset_name <- NULL;
5353

5454
if(!any(c("Onset","Onset_name","Onset_names","Onset_score")
5555
%in% names(phenos))){

R/hpo_onsets_agg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ hpo_onsets_agg <- function(hpo_onsets,
33
agg_by=c("DatabaseID","HPO_ID")){
44
HPO_ID <- Onset <- Onset_name <- Onset_score <- . <- NULL;
55

6-
6+
dict <- hpo_dict(type = "Onset")
77
if("HPO_ID" %in% names(phenos)){
88
hpo_onsets <- hpo_onsets[HPO_ID %in% unique(phenos$HPO_ID)]
99
}

0 commit comments

Comments
 (0)