Displaying 1 result from an estimated 1 matches for "final_set".
Did you mean:
final_dt
2010 Feb 11
0
Regarding a error while plotting R chart using qcc package.
...taching 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)
> print(b_val)
> }
First of a...