Description Usage Arguments Value Examples
View source: R/flatten_dataframe_prime.R
Flattens a list so that all prime numbers in embedded lists are returned in a flat list
1 |
df |
A dataframe of numbers; largest number cannot be greater than 1000 |
A numeric vector that has all of the prime numbers in df
1 2 3 | a <- data.frame(c(2, 3, 4), c(5, 6, 7), c(8, 9, 10))
flatten_dataframe_prime(a)
# returns the numeric vector c(2, 3, 5, 7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.