Stacks Image 20108

For Academics

Sort data frame

Ordering a data frame by a particular column can be quicker than doing it in excel, if the data frame is large.

It is useful, for example

  1. For plotting lines through points in order, or

  2. To see which rows contain the most extreme values at a column

The command

sortedData <- data.frame(unsortedFrame[order(unsortedFrame$length, decreasing=T),])
Previous Post 37 / 50 Post

Tag:

Sex chromosome papers RSS


A Y-linked A-class MADS-box gene as a maleness-determining candidate in the hardy-rubber tree (Eucommia ulmoides)
Link

Influenza B virus suppression of Chromosome Y-linked genes increases pulmonary virus replication and disease severity in male mice
Link

The genome sequence of the Red-tipped Clearwing, Synanthedon formicaeformis (Esper, 1783)
Link