I am quite new to R and struggling with the following issue:
        Country.Name variable Quantity
    1         World     1977  2524966
    2         World     1978  2552326
    3         World     1979  2710504
    4         World     1980  2732926
    5         World     1981  2636113
    6         World     1982  2803907
    7         World     1983  2778356
    8         World     1984  2693296
    9         World     1985  2695397
    10        World     1986  2747397
    (...)
    30        World     2006  3100186
For df$Quantity (numeric) I want to calculate two separate means, from (1) 1977 to 1991 and from (2) 1992 to 2006. Further search hasn't helped me solve that issue, so I'd be glad to hear if anyone could help me out with this!
Best, Jannis
 
    