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

[R-Forge #4766] add boolean detection to fread #567

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 1 comment
Closed

[R-Forge #4766] add boolean detection to fread #567

arunsrinivasan opened this issue Jun 8, 2014 · 1 comment
Assignees

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Adam November; Assigned to: Nobody; R-Forge link

right now fread reads logicals as character strings. Could they be detected as logicals?

df <- data.frame(I=1:3, L=c(T,F,NA))

write.csv(df,'tmp.csv',row.names=F)

df2 = read.csv('tmp.csv')
class(dt$L)
# [1] "logical"

dt = fread('tmp.csv')
class(dt$L)
# [1] "character"
@mattdowle
Copy link
Member

It does read logicals in v1.9.2 but not if blank or NA were in the column. Now fixed.

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

No branches or pull requests

2 participants