Browse code

change to lapply

Jayaram Kancherla authored on 02/04/2019 01:19:13 • GitHub committed on 02/04/2019 01:19:13
Showing 1 changed files

... ...
@@ -208,7 +208,7 @@ names(timeSeriesFits) = classes
208 208
 
209 209
 # Removing classes of bacteria without a potentially
210 210
 # interesting time interval difference.
211
-timeSeriesFits = sapply(timeSeriesFits,function(i){i[[1]]})[-grep("No",timeSeriesFits)]
211
+timeSeriesFits = lapply(timeSeriesFits,function(i){i[[1]]})[-grep("No",timeSeriesFits)]
212 212
 
213 213
 # Naming the various interesting time intervals.
214 214
 for(i in 1:length(timeSeriesFits)){