Open jakob-r opened 5 years ago
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))