Created
February 1, 2016 16:38
-
-
Save benneely/5473b6d01a5e7b5ef743 to your computer and use it in GitHub Desktop.
modify R function in Namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unlockBinding("basehaz", as.environment("package:survival")) | |
assignInNamespace("basehaz", my_basehaz, ns="survival", envir=as.environment("package:survival")) | |
assign("basehaz", my_basehaz, "package:survival") | |
lockBinding("basehaz", as.environment("package:survival")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment