| parse_depth_column | R Documentation |
Applies parse_depth() row-wise and appends Depth_num and
Depth_label columns.
parse_depth_column(df, depth_col = "depth")
df |
A data frame. |
depth_col |
Name of the depth column (character string). |
The input data frame with two extra columns:
Depth_num (numeric midpoint) and Depth_label (factor, ordered by
depth).
df <- data.frame(depth = c("0-5", "5-15", "15-30"), x = 1:3)
parse_depth_column(df, "depth")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.