Displaying 1 result from an estimated 1 matches for "wheat6".
Did you mean:
wheat
2000 Mar 29
1
A "stack" function
...function(data)
+ data.frame(values = unlist(data),
+ lev = factor(rep(names(data), lapply(data, length))))
> stack(ex10.09) # try it on the example
values lev
Wheat1 5.2 Wheat
Wheat2 4.5 Wheat
Wheat3 6.0 Wheat
Wheat4 6.1 Wheat
Wheat5 6.7 Wheat
Wheat6 5.8 Wheat
Barley1 6.5 Barley
Barley2 8.0 Barley
Barley3 6.1 Barley
Barley4 7.5 Barley
Barley5 5.9 Barley
Barley6 5.6 Barley
Maize1 5.8 Maize
Maize2 4.7 Maize
Maize3 6.4 Maize
Maize4 4.9 Maize
Maize5 6.0 Maize
Maize6 5.2 Maize
Oats1 8.3 Oat...