silicate icon indicating copy to clipboard operation
silicate copied to clipboard

Implement as_dm.sc()

Open krlmlr opened this issue 3 years ago • 1 comments

with separate methods for all models if necessary.

Only suggest dm, delayed S3 registration via vctrs::s3_register() .

Example for PATH():

x %>%
  unclass() %>%
  as_dm() %>%
  dm_add_pk(object, object_) %>%
  dm_add_pk(path, path_) %>%
  dm_add_pk(vertex, vertex_) %>%
  dm_add_fk(path, object_, object) %>%
  dm_add_fk(path_link_vertex, path_, path) %>%
  dm_add_fk(path_link_vertex, vertex_, vertex)

Result:

Screenshot from 2020-12-14 11-52-27

krlmlr avatar Dec 14 '20 10:12 krlmlr

yes, appreciate the input - this is overdue and I hope to spend some time on it in next months

mdsumner avatar Dec 15 '20 01:12 mdsumner