You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I vote for keeping the attributes intact. Or is there any easy way how to turn vectors of any class into vctrs vectors that know about custom attribute(s)? For my usecase, I want to store "label" attribute of columns in tibble and I don't want to lose it on every list_rbind() or bind_rows() call 😔. I tried to create vcrts "analogues" of doubles, integers, characters with the simple approach below, but failed miserably on factors...
From tidyverse/dplyr#6705 with columns during
bind_rows()
Possibly retaining the attributes of the first input?
My heart says no, and that you should create a custom class that knows about
label
if you want this.The text was updated successfully, but these errors were encountered: