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

colnames Error #12

Open
lengyuyeke opened this issue Jan 25, 2017 · 0 comments
Open

colnames Error #12

lengyuyeke opened this issue Jan 25, 2017 · 0 comments

Comments

@lengyuyeke
Copy link

lengyuyeke commented Jan 25, 2017

In "RImpala/src/R/RImpala.R" this file,
at 47 rows
onlyData = data.frame(result[3:nrow(result),],stringsAsFactors=FALSE,row.names=NULL)
when the result has 3 rows ,result[3:nrow(result),] will return a object with one dimension witch is not a matrix,then the next code
colnames(onlyData)=colNames
will result a error .
So,the solution will be result[3:nrow(result),,drop=F] which will return a matrix no matter how many rows in result .

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