this gives a warning because ignore.attribute can have length more than one so is.na() returns a length > 1 logical vector. An option would be isTRUE(is.na(...)), or remove the conditional entirely and just do
> OpenML::getOMLTask(146800, verbosity = 0)
Warning in if (is.na(data.desc$ignore.attribute)) data.desc$ignore.attribute = data.desc$row.id.attribute else data.desc$ignore.attribute = c(data.desc$ignore.attribute, :
the condition has length > 1 and only the first element will be used
this gives a warning because
ignore.attribute
can have length more than one sois.na()
returns a length > 1logical
vector. An option would beisTRUE(is.na(...))
, or remove the conditional entirely and just doTo reproduce: