Changing column names of a data frame
I have a data frame called “newprice” (see below) and I want to change the column names in my program in R. > newprice Chang. Chang. Chang. 1 100 36 136 2 120 -33 87 3 150 14 164 In fact this is what am doing: names(newprice)[1]<-paste(“premium”) names(newprice)[2]<-paste(“change”) names(newprice)[3]<-paste(“newprice”) I have not put this in … Read more