Re: [R] Replace empty cels in multiple dataframes

2013-12-03 Thread arun
On Tuesday, December 3, 2013 2:31 PM, Luis Santomé Collazo wrote: Hi everyone, HI, ##Creating a reproducible example set.seed(45) lst1 <- lapply(1:3,function(i) data.frame(AAA=sample(c(NA,1:10),20,replace=TRUE),BBB=sample(40,20,replace=TRUE))) lapply(seq_along(lst1),function(i) write.tab

[R] Replace empty cels in multiple dataframes

2013-12-03 Thread Luis Santomé Collazo
Hi everyone, I'd like to replace the empty cells from a numerical variable (let's say variable "AAA") with zero in multiple dataframes using "plyr" package. Of course all the dataframes have the same structure but different number of lines. I've been trying variations of: |dataset <- list.fil