Yes! Would you mind filing an issue so I dont forget?
Hadley
On Friday, July 29, 2011, Stavros Macrakis wrote:
> Perfect! Thanks!
> By the way, I see that, unlike base rbind, it does not work for vectors
and lists:
> rbind(c(a=1),c(b=2)) => matrix(1:2,2,1,dimnames=list(NULL,"a"))
== as.matr
Perfect! Thanks!
By the way, I see that, unlike base rbind, it does not work for vectors and
lists:
rbind(c(a=1),c(b=2)) => matrix(1:2,2,1,dimnames=list(NULL,"a"))
== as.matrix(data.frame(a=1:2))
but
rbind.fill(c(a=1),c(b=2)) => NULL
Shouldn't it give something like
matrix(c(1,
Use plyr::rbind.fill? That does match up columns by name.
Hadley
On Thu, Jul 28, 2011 at 5:23 PM, Stavros Macrakis wrote:
> I have a file of data where each line is a series of name-value pairs, but
> where the names are not necessarily the same from line to line, e.g.
> a=1,b=2,d=5
> b=4
I have a file of data where each line is a series of name-value pairs, but
where the names are not necessarily the same from line to line, e.g.
a=1,b=2,d=5
b=4,c=3,e=3
a=5,d=1
I would like to create a data frame which lines up the data in the
corresponding columns. In this case, this wo
4 matches
Mail list logo