I've got excel file with my data, I used "readxl" package to transport data to R. I've got several variables, one of these is called "EMPLOYEE ATTITUDE", it contais three types of grades - A, B and C. I wanted to use summary function to check what is the average hourly rate among employees who gained "A" grade.
Data=read_excel("Data.xls")
attach(Data)
summary(subset(Data, EMPLOYEE ATTITUDE == A)$"HOURLY RATE")
and it's not working. I've tried to make variable "EMPLOYEE ATTITUDE" to be seen as a factor by commend
Attitude=factor(EMPLOYEE ATTITUDE)
but i still see the communicat that there is no such object as "A"!