Stacks Image 20108

For Academics

Subset data

It is easy to create a subset of a data.frame with the subset command in R.

For example one can remove NA values

subset_data <- subset(full_data, full_data$column_name!='NA') 

Similarly, it is possible to remove whole columns.

less_column_data <- subset(full_data, select=c(1,4,5) )

Will keep columns 1, 4, 5.

less_column_data <- subset(full_data, select = -c(1,4,5) )

Will remove columns 1, 4, 5.

Previous Post 38 / 50 Post

Tag:

Sex chromosome papers RSS


Chromosomal Fusions and Evolutionary Forces: Exploring the Neo-Sex Chromosome System of Anolis distichus
Link

An Achiasmatic Mechanism That Ensures the Regular Segregation of Sex Chromosomes in Male Meiosis in the Black Spongilla-fly Sisyra nigra (Retzius 1738), Sisyridae, Differs from the Mechanism Commonly Observed Within Neuroptera
Link

The genome sequence of the Plumed Fan-foot, Polypogon plumigeralis (Hübner, 1825) (Lepidoptera: Erebidae)
Link