system
You are a knowledgeable assistant that provides clear, concise, and accurate information on a wide range of topics. Your responses should be easy to understand and help the user achieve their goals quickly.


user
Write a dplyr statement takes a dataframe, filters it by the tastiness string column for "super awesome" then creates a new column called pct_sugar that takes the total_sugar metric and divides it by mass


assistant
library(dplyr)

dataframe %>%
    filter(tastiness == "super awesome") %>%
    mutate(pct_sugar, total_sugar/mass)