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

Call type.convert after dcast #51

Open
krlmlr opened this issue Jun 10, 2014 · 2 comments
Open

Call type.convert after dcast #51

krlmlr opened this issue Jun 10, 2014 · 2 comments

Comments

@krlmlr
Copy link

krlmlr commented Jun 10, 2014

It would be great if dcast optionally called type.convert on each resulting column. Perhaps triggered by a new parameter as.is that defaults to NA (=no type.convert) and otherwise is passed to the type.convert call?

Sometimes data is given as a key-value list; if the values contain non-numerics, everything is a character after dcast.

@macrakis
Copy link

That's a terrible idea! I don't want dcast to guess the types of my data -- I want it to preserve them.

@krlmlr
Copy link
Author

krlmlr commented Jun 16, 2014

Now I see my request is not clear: I'm referring to the data in the value column only; of course, data in key columns should be preserved. Does this make more sense?

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

2 participants