Description Usage Arguments Value Examples
Similar to unique
, only optimized for working with
date-time columns.
1 | funique(x)
|
x |
Input data. If x is not a data frame or date-time object, then it is
simply passed to |
The unique rows/values of x.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## create example data set
d <- data.frame(
x = rnorm(1000),
y = seq.POSIXt(as.POSIXct("2018-01-01"),
as.POSIXct("2018-12-31"), length.out = 10)
)
## sample to create version with duplicates
dd <- d[c(1:1000, sample(1:1000, 500, replace = TRUE)), ]
## get only unique rows
head(funique(dd))
## check output
identical(unique(dd), funique(dd))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.