This is 3 short questions that needs to be answered in R programming:
You are given a data set titled data.txt and the following code:
data <- read.table("data.txt", header = TRUE)
The dataset looks like this:
Question:
1. Create a table containing the sample size for each combination of sex and genotype (code in R).
2. Calculate the mean and standard deviation for each combination of sex and genotype (code in R).
3. Create side by side boxplots of MPI activity for the three types of **Genotype** (code in R)
Suppose your dataset is 'df'
# then for for accesing the sex and genotype use
names(df) <- c("Genotype", "Sex")
# Mean is -:
mean( df [ ["Genotype", "Sex"] ] )
# Standard deviation is -:
sd( df [ ["Genotype", "Sex"] ] )
This is 3 short questions that needs to be answered in R programming: You are given a data set ti...