0

I want to convert the following data enter image description here

to this format

enter image description here

I have managed to do the following code but can't seem to figure out the SD part:

data_long <- data %>% pivot_longer(cols = mean_control:mean_infected, 
                           names_to = "mean", 
                           values_to = "count"
)
kBialdb10
  • 1
  • 1
  • It would be easier to help if you create a small reproducible example along with expected output. Read about [how to give a reproducible example](http://stackoverflow.com/questions/5963269). Images are not the right way to share data/code. – Ronak Shah Jun 15 '21 at 12:10

0 Answers0