开发者

Masked functions in R [duplicate]

This question already has answers here: What does "The following object is masked from 'package:xxx'" mean? 开发者_Go百科(2 answers) Closed 5 years ago.

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


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

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

All the best!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜