Hi R expert, I have a question regarding groupedData
If I have a data with cell numbers, day, subject, and gender, and I want the gender to be a categorical factor. With cell numbers is a function of day, and subject is the number of patient. What is the correct way to use groupedData in this case ?

Is this correct ?

dat <- groupedData(cell ~ day|subject,outer=~gender, data = as.data.frame(elements))

Thanks for your help

Regards,
Arnold

	[[alternative HTML version deleted]]

