I want to exclude/copy rows/columns of multiple dataframes within a list in a list. The code doesn't work yet. Maybe somebody here knows what to do.
Zelllysate_extr <- list()
#defining the list
Zelllysate_extr$X0809P3_extr <- X0809P3_extr
#defining the list within the list
X0809P3_extr = lapply(Zelllysate_colr[["X0809P3"]], function(x) {
as.data.frame(x) <- Zelllysate_colr[["X0809P3_colr"]][2:1500, 1 & 3:4]
return(x)
})
#defining the list for the dataframes to place in; 2:1500, 1 & 3:4 are the rows and columns to copy
thanks