Comments (4)
Good idea, I will definitely implement this in the next release.
If we have character started with ^ or ended with $ then we will expand it to column names. But note that we haven't parametric evaluation in this case:
# dplyr
my_vars = "Se"
iris %>% select(starts_with(my_vars )) # work
# maditr
my_vars = "^Se"
iris %>% dt_select(my_vars ) # will not work
from maditr.
While ^ and $ are good, but dplyr::contains
might also be useful. Perhaps provide a new parameter like "regex"?
Thanks.
from maditr.
You can describe any name with "^" and "$", e. g. "^.*my_string"
is equivalent to contains("my_string")
. However I will think about general API for variable selectors.
from maditr.
I have tried too, but I could not support Sepal.Length:Petal.Length
for select() so far.
See https://hope-data-science.github.io/tidydt/reference/select_dt.html.
from maditr.
Related Issues (15)
- naming conventionos HOT 3
- Try to use dt_distinct, any clues? HOT 2
- Want to write a dt_rename but failed HOT 2
- Question about na.rm in maditr HOT 2
- Get lag and lead using API HOT 1
- set2key error with next release of data.table 1.13.0 HOT 2
- maditr does not work without `library(maditr)` HOT 2
- Conda forge r-maditr HOT 2
- Imports for data.table version are incorrect HOT 2
- Compare and contrast this to dtplyr? HOT 1
- let dt_* functions more like dplyr HOT 3
- Return top row(s) by group HOT 2
- Group computation in maditr? HOT 5
- Make all methods S3-methods for easier integration with other packages like disk.frame HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maditr.