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

Name data viewer inside RStudio #6

Open
ghost opened this issue Dec 5, 2018 · 0 comments
Open

Name data viewer inside RStudio #6

ghost opened this issue Dec 5, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 5, 2018

You want to assign custom names to several datasets you are inspecting in the data viewers.

For example,

View(starwars)
View(storms)
View(smiths)

Inside RStudio, those commands open R's data viewer with default names:

screen shot 2018-12-05 at 4 01 42 pm

Solution {-}

Option 1
View(starwars, "starwars from dplyr")
View(storms, "storms from dplyr")
View(smiths, "smiths from tidyr")
Option 2
starwars %>% 
  View("starwars from dplyr")
storms %>% 
  View("storms from dplyr")
smiths %>% 
  View("smiths from tidyr")

screen shot 2018-12-05 at 4 06 28 pm

Discussion {-}

Inside View() you insert a R object and then the title for the data viewer. This is really unnecessary with a few datasets, but when inspecting more than 5 datasets, this comes in handy.

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

0 participants