How can cause the row_to_keep command to work with the variable b instead of using the real variable name. Thanks for your help
> names(newdata)
[1] "Jahr" "Forstzone" "value,,"
> variablennameliste<-list("Year","year","Jahr","jahr")
> b<-toString(intersect(names(newdata),variablennameliste))
> print(b)
[1] "Jahr"
>row_to_keep = which(newdata$b!=2014)
Warning message:
Unknown column 'b'
I have tried the
assign()
command, but it didn't work