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

Data/ data frame #107

Closed
eostrinidad opened this issue Aug 28, 2022 · 2 comments
Closed

Data/ data frame #107

eostrinidad opened this issue Aug 28, 2022 · 2 comments

Comments

@eostrinidad
Copy link

I get this message whenever I use PanelMatch:

please convert data to data.frame class
In addition: Warning message:
In if (class(data) != "data.frame") stop("please convert data to data.frame class") :
the condition has length > 1 and only the first element will be used

However, my data is already a data frame. Any advice for this? Thanks!

@adamrauh
Copy link
Collaborator

Hi @eostrinidad , thanks for using the package!

It is a bit hard to say, but have you tried explicitly setting the class of the data -- something like class(data) <- "data.frame"? This error seems to suggest that the data object being passed has more than one class associated with it.

@eostrinidad
Copy link
Author

Thanks so much, Adam! This was really very helpful and I can't wait to use the program.

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