insongkim / PanelMatch

111 stars 34 forks source link

Data/ data frame #107

Closed eostrinidad closed 1 year ago

eostrinidad commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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