RE: [R] Processing logic for Huge Data set

2003-10-20 Thread Liaw, Andy
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Loops are time consuming in R. Try one of the apply functions for vectorized calculations, like apply, lapply,sapply or tapply. Also see help for split. Have you actually compared for loop with apply, in terms of timing? Have you

Re: [R] Processing logic for Huge Data set

2003-10-20 Thread TyagiAnupam
In a message dated 10/20/03 5:11:25 AM Pacific Daylight Time, [EMAIL PROTECTED] writes: Have you actually compared for loop with apply, in terms of timing? Have you looked at the R code for apply()? It has: ... if (length(d.call) 2) { if (length(dn.call)) dimnames(newX)

[R] Processing logic for Huge Data set

2003-10-19 Thread Manoj - Hachibushu Capital
Hello All, I am new to R. I am trying to process this huge data set of matrix containing four columns, say x1, x2, x3, x4 and n number of rows. I want to aggregate the matrix by x1 and perform statistic based on columns x2, x3, x4. I tried aggregate function but it gave me memory