search for: unique_b_v

Displaying 1 result from an estimated 1 matches for "unique_b_v".

2010 Feb 11
0
Regarding a error while plotting R chart using qcc package.
...00 > > > > Also I am attaching the dataset and the code which gave me error > while plotting R chart. > > R code is as follows: - > > SAMPLE_SIZE<-1000 > y<-read.csv("data.csv",sep=",",header=TRUE) > y<-subset(y, !is.null(y[,1]),) > unique_b_vals = unique(y[,2]) > final_set <- NULL > for(b_val in unique_b_vals) > { > temp1 = subset(y,week==b_val,) > temp1 = temp1[sample(dim(temp1)[1], SAMPLE_SIZE),] > if (is.null(final_set)) > final_set <<- temp1 > else > final_set <<- rbind(final_set,temp1) &g...