##I am trying to create frequency table based on the count of categorical variables
name <- c('A','A','B','C','C','C')
SysVSMan <- c('M','M','M','M','M','M')
Obj <- c('123','123','125','125','125','127')
d <-data.frame(name, SysVSMan, Obj)
d
# I want to count for each A, for each B, and for each C, the count of M and the unique number of obj
#So table should look something like this:
name1 <- c('A','B','C')
SysVSMan1 <- c(2,1,3)
Obj1 <- c(1, 1, 2)
d1 <- data.frame(name1, SysVSMan1, Obj1)
d1