+
Skip to content

as_task_*_st and friends could allow setting column roles directly #184

@pat-s

Description

@pat-s

We could support this via the ellipsis. Otherwise setting the respective column roles could be somewhat easily forgotten.
On the other hand behaviour would differ than compared to as_task_*() from mlr3 as such custom conversions would not be supported there.

@be-marc what do you think?

Example:

data("cookfarm_sample", package = "mlr3spatiotempcv")

# data.frame
as_task_regr_st(cookfarm_sample, target = "PHIHOX",
  coords_as_features = FALSE,
  crs = 26911,
  coordinate_names = c("x", "y"),
  column_role_space = "foo",
  column_role_time = "time"
)

```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载