I've been working on an unsupervised random forest procedure, which seems to work when loading a stored data set (such as Iris); yet but when loading my own dataset which I call EQ3, the same procedure does not work.
Instead, I get the error feedback that:
x must be data.frame or matrix object
However, I have checked the 'class(EQ3)', and my data appears as a 'data.frame'.
And when I use the identical commands to the one suggested by the procedure, namely:
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
You can share your data in a forum friendly way by passing the data to share to the dput() function.
If your data is too large you can use standard methods to reduce it before sending to dput().
When you come to share the dput() text that represents your data, please be sure to format your post with triple backticks on the line before your code begins to format it appropriately.