Welcome to the community!
It is indeed possible in R, which is the programming language, of which RStudio is an IDE.
If you have a column named year in a data frame df, and you want mean of the column obs, then you can do mean(x = df$obs[df$year == 1990]). Obviously, there are many other ways to do the same.