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

Feature request: data dictionary #62

Open
Aariq opened this issue Jul 31, 2019 · 1 comment
Open

Feature request: data dictionary #62

Aariq opened this issue Jul 31, 2019 · 1 comment

Comments

@Aariq
Copy link

Aariq commented Jul 31, 2019

Maybe this is outside the scope of the package, but I often start analyses by defining the variables in a dataframe. Similar to the table function, a function could turn the colnames of a dataframe or tibble into a list something like this:

+ `Sepal.Length` (numeric): description
+ `Sepal.Width` (numeric): description
+ `Petal.Length` (numeric): description
+ `Petal.Width` (numeric): description
+ `Species` (factor): description
@Aariq
Copy link
Author

Aariq commented Jul 26, 2020

I wrote some code that implements this. When nothing is selected, it inserts:

data_frame: <description>

  • col1 (type):
  • col2 (type):
  • col3 (type):

With a selection, if it is a data.frame, it inserts:

gapminder: <description>

  • country (factor):
  • continent (factor):
  • year (integer):
  • lifeExp (numeric):
  • pop (integer):
  • gdpPercap (numeric):

I'm still not sure if this is really in the scope of this package, but if you are interested I can make a PR.

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