Closed hanjanirina closed 2 years ago
I experienced the same issue. However there is a simpler solution than saving and re-importing. What I have experienced it only accepts base data.frame
object as input for data, thus if you convert your data with as.data.frame(mydata)
, then it works.
I experienced the same issue. However there is a simpler solution than saving and re-importing. What I have experienced it only accepts base
data.frame
object as input for data, thus if you convert your data withas.data.frame(mydata)
, then it works.
Thanks for posting this! This should be right. We will add an update to provide better warnings/errors about this.
Hi, I recently encountered an error that I couldn't understand but found a workaround for it. I constructed a dataset from existing CSV and online downloads through packages on R. It's a country-year panel dataset all_merged_conflict.csv.
I ran DisplayTreatment and got this error:
I did not understand at all why this would occur as my year variable is set correctly as an integer and consecutive. So at first I gave up and simply used another package for this purpose.
I ran PanelMatch and I got this error:
I checked and checked again, and even changed the type from double to integer (just like wbcode2 is the dem data) but the unit id is numeric (Tried with as.integer() too but no luck).
However in the process of creating sample data and code snippets. The functions worked with the same exact data but newly imported from a CSV file. I don't know what's causing this but the code I used to recreate this problem is as below.
Hoping you can figure out the issue for your next release. Thank you for a great package.