문제

 > 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!

도움이 되었습니까?

해결책

names(coefficients) <- c("int","X1","X2","X3")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top