Skip to content

colnames Error  #12

Description

@lengyuyeke

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 .

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions