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 of class for data frame subsets by column #296

Open
gosianow opened this Issue Sep 19, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@gosianow

gosianow commented Sep 19, 2017

In Programming with R, Addressing Data, there is a line of code that shows the class of dat:
class(dat)
which is a "data.frame". Maybe just for completeness, it would be worth mentioning that when subsetting by column, the class of what we get changes. For example, for dat$Gender
class(dat$Gender) is "character".

@katrinleinweber

This comment has been minimized.

Collaborator

katrinleinweber commented Feb 12, 2018

As in #295, please feel free to send a PR. Your suggestion makes sense, so I'd be happy to review a specific "implementation" / addition to the lesson :-)

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