R studio: Error in tabular

When i use the package "table" in R studio I meet this problem.
Is there a way to let the function accept the "apparently" duplicate
values?
Here is my code

YD_mean_1 <- tabular(G_ID~(FT+ FT50)*(mean), data = yield2016_drought7)
Error in term2table(rows[[i]], cols[[j]], data, n) :
Duplicate values: G_ID and FT

I am a new user of R studio. Please help me to solve the problem.
Thank you so much.

Hi, and welcome to community.rstudio.com! Without knowing what your data looks like, it's hard to answer your question. To help you get the right help for your question, can you please turn it into a reprex (reproducible example)? This will ensure we're all looking at the same data and code. A guide for creating a reprex can be found here.

1 Like