Skip to content

Commit ec90eb2

Browse files
committed
Remove getEquation function
1 parent 7b99b21 commit ec90eb2

File tree

1 file changed

+0
-20
lines changed
  • Late adults stats pipeline/DRrequiredAgeing/DRrequiredAgeingPackage/R

1 file changed

+0
-20
lines changed

Late adults stats pipeline/DRrequiredAgeing/DRrequiredAgeingPackage/R/sideFunctions.R

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -576,26 +576,6 @@ getMethodi = function(var,
576576
return(method)
577577
}
578578

579-
# Equation map
580-
getEquation = function(var,
581-
equationMap = NULL)
582-
{
583-
matched001 = sapply(names(equationMap), grepl, var)
584-
if (sum(matched001) > 0) {
585-
if (sum(matched001) > 1) {
586-
equationMapReduced = equationMap[matched001]
587-
mappedPatternLengths = nchar(names(equationMapReduced))
588-
equation =
589-
unlist(equationMapReduced[which(mappedPatternLengths == max(mappedPatternLengths))])
590-
} else {
591-
equation = unlist(equationMap[matched001])
592-
}
593-
} else{
594-
equation = 'withWeight'
595-
}
596-
return(equation)
597-
}
598-
599579
local = function(x=NULL){
600580
r= system.file("extdata", package = "DRrequiredAgeing")
601581
return(r)

0 commit comments

Comments
 (0)