Re: [R] proc standardize data frame x and y

2006-08-13 Thread hadley wickham
1) Can someone recommend an equivalent to SAS PROC Standardize in R? I am in need to frequently standardize a data frame, with z-scores, or squash to 0-1 scale - is there a slick function or package someone can recommend? You could try rescaler in the reshape package. It currently supports

[R] proc standardize data frame x and y

2006-08-12 Thread zubin
Hello! i know these are basic but i cannot seem to find the answer thru my searches.. 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I am in need to frequently standardize a data frame, with z-scores, or squash to 0-1 scale - is there a slick function or package someone

Re: [R] proc standardize data frame x and y

2006-08-12 Thread Wensui Liu
for proc standardzize, check ?scale On 8/12/06, zubin [EMAIL PROTECTED] wrote: Hello! i know these are basic but i cannot seem to find the answer thru my searches.. 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I am in need to frequently standardize a data frame,

Re: [R] proc standardize data frame x and y

2006-08-12 Thread Wensui Liu
zubin, for your second question: supposed you have x1 and x2 and want to combine them in a matrix X in a data frame called data, try the following code: X-matrix(1:10, ncol = 2, dimnames = list(NULL, c(x1, x2))); class(X) class(X)-AsIs; class(X) data-data.frame(X); summary(data); On 8/12/06,