we were given 2 data frames to import
1 contains a list of gene expression data for 17 patients (non - numerical)
the second one contains their gene ID and their treatment group
these data sets have to firstly be combined
and then we have to calculate the mean expression value for each treatment group
im struggling to work out how to calculate the mean and assosiate it to a certain treatment group
apologies if this does not make sense
patients<-read.table("GSE4922-GPL96_log2Mas5Sc500-N17.tab",sep = "\t", header=TRUE)
patients
attach(patients)
ProbeSetID
patientpID<-read.table("Patient-Groups-N17.tab", sep = "\t",header=TRUE)
patientpID
attach(patientpID)
PatientID
mergeddata<-merge(patientpID,patients)
grouping(TreatmentGroup)
sum(avg_pID = mean("ProbeSetID"))
this is what I have so far, but I need to find the mean of the Probe Set ID and the group it into a treatment group