I am working on a CSV document using R Studio. I have data from 2008 to 2018, but I want to eliminate 2008, 2009 and 2018 from the dataframe so see how the results change. I tried the following code but it's not working:
base.final <- merge(x=base.final, y=base.dividendos, by = c('Ativo',"Data"),
all.x = TRUE, all.y = FALSE)
table(is.na(base.final$SETORES_NEFIN))/12
#eliminating years from the data base
base.final <- base.final[base.final$Data!="2008","2009", "2018",]
Error that comes up: [.data.frame
(base.final, base.final$Data != "2008", "2009", :
unused argument (alist())
This is a database from stocks, and I need to remove some tickers from the data base as well. Which code should I use? I'm working with dplyr.
I tried changing the last comma but it didn't worked out. I am still learning the language.