Practical Predictive Analytics
上QQ阅读APP看书,第一时间看更新

Appending the variables to the existing dataframe

We will now take the three new variables that we have created, append the new vectors to the existing data frame, and give it a new name:

df2 <- cbind(df,Total.Charges.z,Total.Costs.z,los.int)
str(df2)