Displaying 1 result from an estimated 1 matches for "wantednam".
Did you mean:
wantedname
2010 Oct 18
1
questions on unstack()
...ted from "EU B" to "EU.B" - how to preserve the original names?
2. The column names are sorted alphabetically - how to preserve the original order? I tried
> unstack(x, terms(Jem ~ name, keep.order = TRUE))
but it doesn't really do anything.
3. If I declare a variable wantedName <- 'Jem', how can I use it to perform the unstack:
> unstack(x, `wantedName` ~ name)
Error in tapply(eval(form[[2L]], x), eval(form[[3L]], x), as.vector) :
arguments must have same length
Thanks,
Murali