Last active
August 29, 2015 14:06
-
-
Save romainfrancois/fa82b6299daa1f97a002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
ir <- structure( iris, class = c("foo", "data.frame") ) | |
rbind.foo <- function(...) rbind.data.frame(...) | |
rbind(ir,iris) | |
# Sepal.Length Sepal.Width Petal.Length Petal.Width Species | |
#ir Numeric,150 Numeric,150 Numeric,150 Numeric,150 factor,150 | |
#iris Numeric,150 Numeric,150 Numeric,150 Numeric,150 factor,150 | |
``` | |
So apparently we get the same as : | |
``` | |
rbind( as.list(ir), as.list(iris) ) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment