Is there a shortcut to add a new line into the R (RStudio) code?
I would like to avoid something like gapminder%>%filter(continent=="Asia")%>%group_by(year)%>%summarise(mean_pop=mean(pop))%>%ggplot(aes(x=year,y=mean_pop))+geom_point()+geom_line()+theme_bw()
by using
gapminder %>%
filter(continent == "Asia") %>%
group_by(year) %>%
summarise(mean_pop = mean(pop)) %>%
ggplot(aes(x = year, y = mean_pop)) +
geom_point() +
geom_line() +
theme_bw()
but without holding the space bar all the time.. and I googled now nearly half an hour and just didn't find a shortcut. Can't believe it?! So how all are doing this?