I am new to RStudio, and my goal is to create a new table that sums each category (of Application status) from the raw data sample. I have looked to similar questions to this, but I got even more confused. I have provided the code below (I know it's wrong). I appreciate all the help! Any resources for RStudio is greatly appreciated as well.
Raw Data Sample:
Student_ID | Application_Status0 |
---|---|
1 | Verified |
2 | Complete |
3 | Not Complete |
4 | Verified |
5 | Complete |
6 | Not Compete |
7 | Complete |
8 | Verified |
Desired Table:
Application_Status | # of Students |
---|---|
Verified | 100 |
Complete | 209 |
Not Complete | 385 |
Code (in chunk):
```{r}
df
sum(df$Student_ID)
sum(df$Application_Status0)
df1=as.table()
df1