In the following code below, i look over three variables in a dataset. However, I would like to look over the three variable when the year column is equal to 72. Is there a way to do it by using the View function?
library(plm)
data("Cigar")
View(Cigar[, c("year","price", "sales")])