View source: R/add_squids_to_df.R
add_squids_to_df | R Documentation |
Add a column with SQUIDs to a data frame
add_squids_to_df(
x,
colName = "SQUID",
warnAgainstOverwriting = TRUE,
origin = Sys.time(),
follow = NULL,
followBy = NULL
)
x |
The data frame |
colName |
The name of the column to add; set to |
warnAgainstOverwriting |
Whether to throw an error if a column with
name |
origin |
The origin to use when generating the SQUIDs. This allows
you to reproduce the same sequence of SQUIDs. You can easily get an
origin with |
follow |
A vector of one or more SQUIDs (or a list; lists are
recursively |
followBy |
When following a vector of SQUIDs, this can be used to specify the distance between the two vectors in centiseconds. |
If colName = NULL
, the column with SQUIDs; otherwise, x
with
an additional column named with the value of colName
.
squids::add_squids_to_df(
mtcars
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.