Hi
I am trying to work with mice in R, but get the message when retrieving the library:
"The following objects are masked from ‘package:base’:
cbind, rbind"
Any ideas what it means and how to fix it?
Hi
I am trying to work with mice in R, but get the message when retrieving the library:
"The following objects are masked from ‘package:base’:
cbind, rbind"
Any ideas what it means and how to fix it?
As its not an error there is nothing to fix.
You should know that the functions of cbind and rbind are 'replaced' by mice package.
This is a warning to you that if you choose to use these functions, you might expect different results. or else when you use them, stipulate you want the base versions i.e. base::cbind
, but if you wont be using them, then its irrelevant.
You shouldn't need to do anything. The following comes from the help file after running ?mice::rbind
. I recommend you read the entire help file.
Essentially, rbind
and cbind
are redefined to support mice
objects, but if mice
objects aren't in use, it reverts to the base
behavior.
The standard
base::cbind()
andbase::rbind()
always dispatch tobase::cbind.data.frame()
orbase::rbind.data.frame()
if one of the arguments is adata.frame
. The versions defined in themice
package intercept the user command and test whether the first argument has class"mids"
. If so, function callscbind.mids()
, respectivelyrbind.mids()
. In all other cases, the call is forwarded to standard functions in thebase
package.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.