Description Usage Arguments Note Examples
add_id
adds a sequestional ID column with a custom prefix.
1 |
data |
|
prefix |
Chacter string that appears befoer the number |
pad_number |
Integer indicating the total digits (not inlcluding prefix) |
name |
Character string for name of the variable |
For data.table
load package dtplyr
1 2 3 4 5 | foo <- data.frame(a = c(1:10), b = c(a:z))
foo <- AddID(foo, "test")
foo2 <- data.frame(a = c(1:10), b = c(a:z))
foo2 <- AddID(foo2, "PRE", pad_number = 3, name = "Tag")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.