Browsed by
Tag: subset()

Data filtering using R Studio

Data filtering using R Studio

When you conduct statistical analysis, you might want to include/exclude some variables. For example, here is one data. This is data about how yield, grain number (GN) and averge grain weight (AGW) are different according to two different fertilizers (N0, N1) in five genotypes (CV1 – CV5). That is, there will be 10 treatments [Genotype (5) x Nitrogen (2) =10]. Replicates are 10 as blocks, and therefore experimental unit will be 30 [10 treatments x 3 blocks = 30]. What…

Read More Read More

How to select/delete specific variables using R STUDIO?

How to select/delete specific variables using R STUDIO?

□ How to select and delete specific columns using R STUDIO? In my previous post, I explained how to select or delete specific columns. This time, I’ll elaborate on selecting or deleting specific variables within columns. Once again, I’ll generate a new set of data. If I want to divide the data by genotype, I use the code below. But what if I simply want to delete all instances of the CV2 genotype? The code is below. Alternatively, the code…

Read More Read More

How to select/delete specific columns using R STUDIO?

How to select/delete specific columns using R STUDIO?

It would be helpful if you read the below post before starting!! □ Data filtering using R Studio I’ll generate one data. Let’s say this is a math and English score for 8 students from different countries. Let’s do several things with this data. ■ How to delete certain column? I’d like to delete math column. I use the below code. In case I want to delete both math and eng columns, I use the below code. Without using subset(),…

Read More Read More