Extract edges information ("from-to matrix") from network data frame.

get_nw_fromto(dat)

Arguments

dat

data.frame with netowrk data in long format. Must contain columns study and treatment. Can be IPD, grouped data, or AD.

Value

A matrix with columns "from", "to".