fillNADataframe | R Documentation |
Fill NA by row or column
fillNADataframe(df, byRow = FALSE, byColumn = FALSE, f = "mean")
f |
Default "mean" |
set.seed(1)
data.df = data.frame(
S1 = rnorm(5),
S2 = rnorm(5),
S3 = rnorm(5)
)
data.df[1,2] = NA
data.df[3,3] = NA
loonR::fillNADataframe(data.df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.