search for: shirtsiz

Displaying 1 result from an estimated 1 matches for "shirtsiz".

Did you mean: shirtsize
2013 Mar 03
1
Ordering Table Columns
...previously and I've just failed to find it in my > searches, please accept my apologies. > > Many Thanks, > Chris Think you want to have a look at factors.... Typing ?factor will throw up the relevant help pages # Your Data tbl <- read.table(header = TRUE, text = " ShirtSize Number L 20 M 20 S 11 XL 7 XXL 2 ") # ShirtSize Alphabetical tbl[tbl$ShirtSize,] # Reorder Factor tbl$ShirtSize = factor(tbl$ShirtSize, levels=c("S","M","L","XL","XXL")) # ShirtSize Order by Size tbl[tbl$ShirtSi...