merge.bold | R Documentation |
A function which merges two data frames which contain data obtained from BOLD. Merging data follows a hierarchy for overwriting data. Data obtained from the private API has higher priority than the same data obtained from the public API and newer data has higher priority over older data.
merge.bold(df.x, df.y)
df.x |
A dataframe with data obtaiend from BOLD. |
df.y |
A dataframe with data obtaiend from BOLD. |
A dataframe with merged data.
Nishan Mudalige
## token <- login.bold("username") ## example.df1 <- get.public(container="CCANN") ## example.df2 <- get.private("CCANN", token) ## example.df3 <- get.public(container="ACAGA") ## example.df4 <- get.private("ACAGA", token) ## example.df5 <- get.public(container="DS-ACGAG1") ## example.df6 <- get.private("DS-ACGAG1", token) ## example.df7 <- get.public(taxon="Reptilia") ## example.df.A <- merge.bold(## example.df1, ## example.df1) ## example.df.A ## example.df.B <- merge.bold(## example.df1, ## example.df2) ## example.df.B ## example.df.C <- merge.bold(## example.df1, ## example.df3) ## example.df.C ## example.df.D <- merge.bold(## example.df4, ## example.df5) ## example.df.D ## example.df.E <- merge.bold(## example.df6, ## example.df7) ## example.df.E
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.