I have a data frame, which for the most part is one row observation. However, some lines have several meanings:
# A tibble: 3 x 2 `number` abilities <dbl> <chr> 1 51 b1261 2 57 d710 3 57 b1301; d550 structure(list(`number` = c(51, 57, 57), abilities = c("b1261", "d710", "b1301; d550")), .Names = c("number", "abilities" ), row.names = c(NA, -3L), class = c("tbl_df", "tbl", "data.frame" ))
I would like to get the following:
# A tibble: 3 x 2 `number` abilities <dbl> <chr> 1 51 b1261 2 57 d710 3 57 d550 4 57 b1301
It is straight ahead to divide by; but I'm not sure how easy it is to add a new line, especially since abilities can contain more than two values.
This is very similar: the semicolon R splits the column into rows , but does not require duplicate removal
pluke source share