[Rd] Bug/unhelpful error message when rbinding data frames containing data frame columns

Antoine Fabri @nto|ne@|@br| @end|ng |rom gm@||@com
Thu Jan 2 23:10:36 CET 2020


Dear rdevel,

See the example below :

x <- data.frame(a=1)
x$b <- data.frame(z=1)
y <- x
rbind(x,y)
# Error in `.rowNamesDF<-`(x, value = value) :
#   duplicate 'row.names' are not allowed
# In addition: Warning message:
#   non-unique value when setting 'row.names': ‘1’

I believe, that either it is a bug, and the data frame columns should be
rbind-ed themselves, or
an error should explicitly state that we can't use rbind on data frames
containing data frame columns (and it should be documented).

Thanks and happy 2020!

Antoine

	[[alternative HTML version deleted]]



More information about the R-devel mailing list