Pregunta

 > coefficients
 [1] -0.052993570  0.071073199 -0.004234659 -0.005725687 

How can I rename the columns of my vector "coefficients" in order to get?

> coefficients
      int           X1          X2           X3     
 -0.052993570  0.071073199 -0.004234659 -0.005725687 

Thanks!

¿Fue útil?

Solución

names(coefficients) <- c("int","X1","X2","X3")
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top