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

NA and "NA" characters break convert to localDiskConn after divide #88

Open
jrounds opened this issue Jan 22, 2016 · 0 comments
Open

NA and "NA" characters break convert to localDiskConn after divide #88

jrounds opened this issue Jan 22, 2016 · 0 comments

Comments

@jrounds
Copy link

jrounds commented Jan 22, 2016

Hi,

I call it an "issue". I have a data set with a 2 character code in a vector, and I noticed this scenario:

V1 = c("NA", "DO", "CO", "SH", "VA", as.character(NA))
V1
V2 = runif(length(V1))
data = data.frame(V1=V1, V2=V2)
from = divide(data, by="V1")
tmp = tempfile()
to = localDiskConn(tmp, autoYes=TRUE)
convert(from, to)
Error in getFileLocs(conn, keys) : 
  There are duplicate keys - not currently supported

The solution is either define the NA (missing) as a character string that is unused or change the "NA" character code to something else.

The nature of this error brings it all the way down to the key choice of datadr. Both the "NA" and the NA have key
"V1=NA"

To be clear, this issue is not pressing for me. I have obvious work arounds. Just thought I would note it.

@jrounds jrounds changed the title NA and "NA" characters break divide NA and "NA" characters break convert to localDiskConn after divide Jan 22, 2016
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