Dear all, I have a data.frame with 200 variables, where the first is a group variable and the others are numeric variables with missing values. My question is: How can I change simultanely the missing values by the mean of each group? I think in sapply, lapply, but.... Best regards _________________________________________________________________
[[replacing trailing spam]] [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.