I want to find the mean of the dataset grouped by year and book_Id in R.
I tried to use Tapply but I can only put one index condition in that function.
In SQL it would look something like
Select year, book_id, avg(users_read)
From
Where year = 2018
Group by year, book_id
So my final table would like
year | book_id | avg(users_read)
2018. 1. 12
2018. 2. 8
2018. 3. 13