Browsed by
Tag: na.rm=T

In R Studio, how to exclude missing value (NA)? (feat. na.rm=T)

In R Studio, how to exclude missing value (NA)? (feat. na.rm=T)

I’ll create one data. In genotype D, yield data was missed, so it was indicated as NA. Now I’ll calculate the mean of total yield across all genotypes. As you see above, we can’t calculate the mean dud to NA. To obtain the mean of total yield, we should exclude NA. Using subset(), we can simply exclude Genotype D, but, much simply way is to use the code, na.rm=T Extra tip!! We can exclude the NA using the below code….

Read More Read More