So, i don't know if the title makes it easy to understand, but basically i want to change this to the minimum of code possible:
data %>% 
group_by(name) %>%
mutate(
    plataforma.3DS = sum(plataforma.3DS),
    plataforma.PS3 = sum(plataforma.PS3),
    plataforma.PS4 = sum(plataforma.PS4),
    plataforma.PSP = sum(plataforma.PSP),
    plataforma.PSV = sum(plataforma.PSV),
    plataforma.Wii = sum(plataforma.Wii),
    plataforma.WiiU = sum(plataforma.WiiU),
    plataforma.X360 = sum(plataforma.X360),
    plataforma.XOne = sum(plataforma.XOne)   
)
I have some other columns that i need to do this, so how can i reduce my code? thanks in advance.
 
    