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

Missing value where TRUE/FALSE needed #13

Open
nbadino opened this issue Nov 28, 2022 · 1 comment
Open

Missing value where TRUE/FALSE needed #13

nbadino opened this issue Nov 28, 2022 · 1 comment

Comments

@nbadino
Copy link

nbadino commented Nov 28, 2022

I am trying to draw the phase diagram of the Solow economic growth model. Using y^a with a that is a non-natural number, I get:

Error in if (any(dx[i, j] != 0, dy[i, j] != 0)) { : 
  missing value where TRUE/FALSE needed

The code I use is:

solow <- function(t, y, parameters) {
  list(y^0.5)
}
example2_flowField     <- flowField(solow,
                                    xlim   = c(0, 4),
                                    ylim   = c(0, 4),
                                    system = "one.dim",
                                    add    = FALSE,
                                    xlab   = "t")

Can somebody help me?

@mjg211
Copy link
Owner

mjg211 commented Feb 9, 2023

Sorry, I can't seem to reproduce this error. Can I check what version of phaseR you're running?

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