Skip to content

Instantly share code, notes, and snippets.

@romainfrancois
Last active August 29, 2015 14:06
Show Gist options
  • Save romainfrancois/fa82b6299daa1f97a002 to your computer and use it in GitHub Desktop.
Save romainfrancois/fa82b6299daa1f97a002 to your computer and use it in GitHub Desktop.
```
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