Hi R'ers:
Attached, my R_code, the dataset, and my query.
How can I delete column yhat AND STILL retain the order of Response?
When I remove yhat, the resultant dataset has Response in the original
order,
not the reordered version I created.
Any help is greatly accepted.
Thank you, in advance.
Bruce
--
#How can I delete column yhat AND STILL retain the order of Response?
Response <- read.csv("C:/R_Data/firstRdata.csv", sep=",", header=TRUE)
Response
Response <- data.frame(Response)
attach(Response)
Response
Response <- Response[order(-yhat),]
Response <- Response[rev(order(yhatResponse$yhat)),]
Response
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.