Skip to content

Instantly share code, notes, and snippets.

@TracyYXChen
Last active April 1, 2022 21:26
Show Gist options
  • Save TracyYXChen/7d23c295909b42a4c247025e4080fc38 to your computer and use it in GitHub Desktop.
Save TracyYXChen/7d23c295909b42a4c247025e4080fc38 to your computer and use it in GitHub Desktop.
dvBar01
```{r}
restaurant_df <- data.frame(restaurant=c('SweetRed', 'BananaBee'),
stronglyAgree=c(5,1),
agree=c(4,2),
neutral = c(3,3),
disagree=c(2,4),
stronglyDisagree=c(1,5))
#column names with space!
colnames(restaurant_df) <- c('Restaurant',"Strongly Agree", "Agree", "Neutral", "Disagree", "Strongly disagree")
restaurant_df
```{r}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment