我想在 R data.frame 中重新标记变量,例如我有
data$X
data$Y
reg <- lm(X ~ Y, data)
然后当我运行
summary(reg)
label variable y "Height"
很抱歉这个简单的问题,但经过一番搜索后,我没能找到答案。谢谢!