数据如下
| table<- data.frame() |
| for(x in 0:31){ |
| c<- b[(15*x+1):(15*x+15),] |
| d<- subset(c,c$Used == TRUE,) |
| e<- d[which.min(d$Calculated.Concentration),] |
| LLOD<-e$Calculated.Concentration |
| f<- d$Calculated.Concentration |
| g<- as.numeric(f) |
| LLOQ<- min(g[g!=min(g)]) #去掉最小的那个数 |
| h<- d[which.max(d$Actual.Concentration),] |
| ULOQ<-h$Actual.Concentration |
| i<- d$Correlation.Coefficient |
| R2<- max(i) |
| j<- d$Component.Name |
| Name<- j[1] |
| table[[x]]<- data.frame(Name,LLOD,LLOQ,ULOQ,R2)} |
|
我想每隔15行,按照要求分别提取Name,LLOD,LLOQ,R2这4个数,代码是之前问的结果,每次都报错,希望改进后可以保存每次的结果


雷达卡





京公网安备 11010802022788号







