powered by
Copies result rows that have NAs as index values and replaces the index value with all available values of that index.
NA
fillna(object, marginals)
a data.frame to be filled
data.frame
integer, positions of columns whose locations contain NAs that should be duplicated
integer
Returns a data.frame
Runs dropall before duplication to avoid unnecessary levels.
dropall
See also: http://en.opasnet.org/
a <- data.frame(A = c("a", "b", NA), B = c(1, 2, 3)) fillna(a, 1)
Run the code above in your browser using DataLab