Is there an R function to alter the name columns in this script?

72 views Asked by At

Hello I am trying to generate a time series least square regression with multiple combinations with a set of variables incluiding their lags. I found this useful link:

How can I modify these dplyr code for multiple linear regression by combination of all variables in R.

But when I try to replicate, I obtain this error:

that appears in this image

I try to use the vec_names() package, but it says that have to be a character vector or the rename package but it didn't recognize it.

0

There are 0 answers