Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change how dataframes are named/labelled/accessed? #29

Open
DesiQuintans opened this issue Aug 15, 2024 · 0 comments
Open

Change how dataframes are named/labelled/accessed? #29

DesiQuintans opened this issue Aug 15, 2024 · 0 comments

Comments

@DesiQuintans
Copy link
Owner

I currently take a dataframe by finding an object with that name, rather than passing the object itself it. Works fine for most cases:

> siftr::sift(iris)
ℹ Building the dictionary for `iris`...
✔ Dictionary was built in 0.02 secs.

ℹ `iris` has 5 columns:
  Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species.
ℹ Use siftr::lastsift() to view the full dictionary.

But doesn't work for more complicated accesses:

> siftr::sift(iris[1,])
Error in eval(as.symbol(df_name)) : object 'iris[1, ]' not found

Is this worth it? I think I did it this way so that I could give dictionaries and hashes the object name in the environment that stores them all. Can I use address location instead, or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant