Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Masked functions in R [duplicate]

Tags:

r

This is a newbie question in R. If you have two libraries in R with same function name (and one masking the other) then how do you use the masked function. A concrete example: Both UsingR and QRMlib have the function QQPlot(), and UsingR's QQplot is masking that of QRMlib. How can I use the QQplot function of QRMlib. Thank you

Addition: Just found out that QRMlib::QQplot() works, thus modifying the question that I found in the web. What if they don't have a namespace in which case the above approach will not work. Link to the original question posed in google: https://stat.ethz.ch/pipermail/r-help/2005-March/067710.html

like image 811
user227290 Avatar asked Sep 20 '25 02:09

user227290


1 Answers

UsingR::QQPlot() and/or QRMlib::QQPlot()

Try to load preferred library last, since it will mask the "unwanted" function...

All the best!

like image 94
aL3xa Avatar answered Sep 22 '25 14:09

aL3xa