ids2rownum | R Documentation |
ids2rownum takes a vector of ids and converts it to the right row number in the dataset; ids should be unique in the dataset that is, don't pass the function panel data with multiple same ids
ids2rownum(ids, data, idname)
ids |
vector of ids |
data |
data frame |
idname |
unique id |
vector of row numbers
ids <- seq(1, 1000, length.out = 100)
ids <- ids[order(runif(100))]
df <- data.frame(id = ids)
ids2rownum(df$id, df, "id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.