Take a sample of my datatset to be this Rows HKSJS_F1 SJSKA_F4 AJSIWAL_F1 SJSKSUE_F3 AKSICLS_F4 AKAASLE_F1
Using R I need to:
Group the rows by their ending, subgroup - determined by the F*, e.g F1 or F2
Then I need to then count how man instances of each subgroup they are and return this in an CSV as my output.
I have printed out my row names using
genenames <- row.names(dataset) print(genenames)
But not sure where to go from here.
Any help appreciated.