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

dfRowsToList changes NA_real_ to NA_logical #203

Open
jakob-r opened this issue Nov 21, 2018 · 0 comments
Open

dfRowsToList changes NA_real_ to NA_logical #203

jakob-r opened this issue Nov 21, 2018 · 0 comments

Comments

@jakob-r
Copy link
Member

jakob-r commented Nov 21, 2018

df = data.frame(u = c(NA_real_, NA_real_), x = 1:2)
ps = makeParamSet(
    makeNumericParam("u"),
    makeIntegerParam("x")
)
x = dfRowToList(df, ps, 1L, enforce.col.types = TRUE)
expect_equal(x, list(u = NA_real_, x = 1L))
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