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 19 / 21 Post

Tag:

Sex chromosome papers RSS


Sex chromosome pairing and multivalent associations during meiosis in diploid and polyploid Silene latifolia
Link

Whole-genome resequencing reveals chromosomal fusion-driven early stages of XY chromosomes evolution in the darkbarbel catfish (Tachysurus vachellii)
Link

Osteological Sex Estimation Versus Proteomic Sex "Determination": What Effect Do Our Techniques Have on the Way We View the People of the Past?
Link