I have a table with one of the columns named part (short for "participation"). It causes flextable to error with
Error in merge.data.table(z, rows_data, by = c("part", "ft_row_id")) :
x has some duplicated column name(s): part. Please remove or rename the duplicate(s) and try again.
Reproducible example:
a = data.frame(x = 1:3, y = 2:4)
flextable(a) # no error
a = data.frame(x = 1:3, part = 2:4)
flextable(a) # error as described
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
I have a table with one of the columns named
part
(short for "participation"). It causes flextable to error withReproducible example: