Closed zhezhaozz closed 1 year ago
I think in long-term, we need something similar to tidy-select
modifiers to support features like where(is.character)
, selecting based on a vector, or selecting based on regex.
Agree that I need to build support for across(where(...))
.
I would like to do something more for @glimpse
than to simply wrap describe()
bc glimpse()
in R shows you the first few values of a vector and gives you the type. This shouldn't be too hard to recreate. The result could either be a data frame or we could print to console using @info()
or println()
.
So would either leave it out of this PR or make it function more like its dplyr counterpart.
I think describe()
lets you provide custom functions so we may even be able to use describe()
to create the dplyr glimpse-like output (for example by using first()
).
Will add both macros in different PRs
These two macros are sort of nice-to-have features. Therefore I wish to add them.
Seems that
DataFrames.jl
does not have similar feature as tidyverse'sglimpse()
. The workaround I propose is usingdescribe()
to print summary information for each column and force the it to print all rows of the summary table instdout
. For example:Right now
@relocate
support following use cases: