I run this code but when I perform the last line the error will be appeared, I have 8 datasets and 4 GPL for my meta analysis of microarray data.
my code is here:
ds.id<-c("GSE99039","GSE6613","GSE72267","GSE7621","GSE8397","GSE83977","GSE20141","GSE20163")
ds.plat<-c("GPL570","GPL96","GPL571","GPL97")
data.files<-paste0(ds.id,"_series_matrix.txt")
data.plat<-paste0(ds.plat,".txt")
suppressWarnings(raw <- lapply(data.files, read.delim, comment.char="!"))
raw <- lapply(raw, function(x) {rownames(x) <- x[,1]; x[,-1]})
data <- lapply(raw, function(x) {if(max(x) > 100) log2(x+1) else x})