fill_NA_level | R Documentation |
fill missing value of a field across a level with 0
fill_NA_level(input_node, field_name, by_level, fill_with = 0)
input_node |
input node |
field_name |
field for this operation |
by_level |
across this level |
fill_with |
fill missing value with this value |
node with NA filled for the input field at input level
data(exercise_df)
exercise_node <- data.tree::as.Node(exercise_df)
result <- fill_NA_level(input_node = exercise_node,
field_name = "exercise_time",
by_level = 2,
fill_with = "quarterly")
print(result, "exercise_time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.