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

Output dataframe from run_model() is missing the 'time' variable #3

Open
sallyt-nhs opened this issue Dec 7, 2023 · 0 comments
Open

Comments

@sallyt-nhs
Copy link

Disclaimer: I'm new to pysd2r so this problem might be user error.

I'm trying to follow the 'Population' example in the ReadMe file, but get an error when trying to plot the results of the two simulations as ggplot cannot find the object named TIME. When I run run_model() the resulting dataframe does not have a column of the time variable, even though it exists in the original model.

When I run the equivalent in Python using PySD the output dataframe has the time as the row index/ row name rather than a column, so I'm guessing something is getting lost in the conversion between python and R?

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

1 participant