Hello,
I need some help with R studio.
i am trying to rename my conditions, I have so far managed to rename my column of condition to factor, but need to rename the conditions. My code so far is this:
my_longer_data %>%
mutate(Condition = factor(Condition)) %>%
head()
We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
If you've never heard of a reprex before, you might want to start by reading this FAQ:
p.s. transforming some data to factor and then writing that out to csv only to read it in again, seems to me a bit pointless as csv's are pure text and wont contain any signifiers of your factor intentions so it seems like wasted effort....
this is the code i used (obviously where the stars are I have named data).
I have another query... Is it possible to find the mean median etc when data is in long format? or would i need to place it in wide format?
I have four conditions (as above) and need to summarise my data