Column silently dropped when its name conflicts with value col name in gather.data.frame() #347
Labels
bug
an unexpected problem or unintended behavior
pivoting ♻️
pivot rectangular data to different "shapes"
gather.data.frame()
computes which columns to gather using this snippet.When the user doesn't provide a
...
argument, the gather columns are computed to be anything that's notkey
orvalue
. This logic works when there's no existing column having the same name asvalue
. If there is, that column would be silently dropped from the gathering.I've produced a simple reprex below to illustrate.
The text was updated successfully, but these errors were encountered: