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

Add another button in the Insert > Save Results Tab #9329

Closed
rdstern opened this issue Jan 5, 2025 · 1 comment · Fixed by #9371
Closed

Add another button in the Insert > Save Results Tab #9329

rdstern opened this issue Jan 5, 2025 · 1 comment · Fixed by #9371
Assignees
Milestone

Comments

@rdstern
Copy link
Collaborator

rdstern commented Jan 5, 2025

@N-thony this is a small task to allocate.

Here is the current tab in the Insert dialog:

image

a) Could you change From Data Frame to Into Data Frame.
b) Move that option down and add an option at the top that says From Variables
In that option there are 2 fields to complete, namely
Name(s) [ ] (separated by commas)
Data Frame [ ]
If a,b,c,d is the column names and dat is the data frame name, then it generates 3 lines

Save variables "a,b,c,d" into data frame "dat"

dat <- data.frame( a,b,c,d )
data_book$import_data(data_tables=list(dat=dat))

Note Ok is still enabled if the name field is blank. Then the 2nd line is just dat <- data.frame( ). In that case the names can be added within the script, which will sometimes be easier.

@rdstern rdstern added this to the 0.8.0 milestone Jan 5, 2025
@N-thony
Copy link
Collaborator

N-thony commented Jan 6, 2025

@rdstern, happy new year. This will be a good task for @derekagorhom

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

Successfully merging a pull request may close this issue.

3 participants