Description Usage Arguments Value Author(s) Examples
specify new colnames and/or rownames order, data.frame is sorted in accordance
| 1 | 
| dat | data.frame | 
| col.order | character vector of colnames in new order | 
| row.order | character vector of rownames in new order | 
| warn | logical, if  | 
data.frame
Martin Hecht
| 1 2 3 4 5 6 7 | dat <- data.frame ( matrix ( rnorm ( 100 ) , ncol = 10 ) )
colnames ( dat ) <- paste ( "X" , 10:1 , sep = "" )
rownames ( dat ) <- paste ( "X" , 11:2 , sep = "" )
dat
# sort data.frame by 'col.order' and 'row.order'
sortDatByNames ( dat , paste ( "X" , 1:10 , sep = "" ) , paste ( "X" , 2:11 , sep = "" ) )
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.