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

Seeking Help episode 04: add an example of the usage of dput function #545

Closed
AndresBeita opened this issue Jul 31, 2019 · 2 comments
Closed
Labels
status:need more info More information needed type:clarification Suggest change for make lesson clearer

Comments

@AndresBeita
Copy link

At the end of episode 04: Seeking Help, the lesson suggests the use of the function dput, but there is not much more about it. For me, as it is now, it feels a little bit abstract and not straightforward to understand.

In the Data Carpentry lesson on Data Analysis and Visualization in R for Ecologists, Chapter 1: Before we start, section Asking for help, they already solved this problem providing an example on the usage of the dput function:

dput(head(iris)) # iris is an example data frame that comes with R and head() is a function that returns the first part of the data frame

I think that giving an example will not require much more time of teaching and will help the learners to better interiorize the purpose of the function. I suggest adding the example presented before or something similar.

@jcoliver
Copy link
Contributor

jcoliver commented Aug 1, 2019

Good point, @AndresBeita . I wonder though, if the dput section should just be removed. The output of dput(head(iris)):

structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4), 
    Sepal.Width = c(3.5, 3, 3.2, 3.1, 3.6, 3.9), Petal.Length = c(1.4, 
    1.4, 1.3, 1.5, 1.4, 1.7), Petal.Width = c(0.2, 0.2, 0.2, 
    0.2, 0.2, 0.4), Species = structure(c(1L, 1L, 1L, 1L, 1L, 
    1L), .Label = c("setosa", "versicolor", "virginica"), class = "factor")), row.names = c(NA, 6L), class = "data.frame")

may not be recognizable by most of the learners at this point in the lesson.

@jcoliver jcoliver added status:need more info More information needed type:clarification Suggest change for make lesson clearer labels Aug 1, 2019
@jcoliver
Copy link
Contributor

Closing this for now, but please feel free to submit a pull request if time and resources afford.

zkamvar added a commit that referenced this issue Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:need more info More information needed type:clarification Suggest change for make lesson clearer
Projects
None yet
Development

No branches or pull requests

2 participants