Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrices without colnames. #708

Closed
SamGG opened this issue Nov 18, 2023 · 2 comments
Closed

Matrices without colnames. #708

SamGG opened this issue Nov 18, 2023 · 2 comments

Comments

@SamGG
Copy link

SamGG commented Nov 18, 2023

Hi,
I use ranger with matrices and I get the "Error: No covariates found." error.
In fact, my matrices don't have colnames, so the variable names are not defined.

independent.variable.names <- colnames(x)

I think there should be a check here to compare the length of colnames(x) and ncol(x) and either raise an error or initialize the colnames with some values.
Let me know if it's unclear.
Best.

@mnwright
Copy link
Member

See #597.

@SamGG
Copy link
Author

SamGG commented Nov 22, 2023

Thanks for your feedback. My bad, I didn't find it. I continue on #597.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants