aiorazabala / qmethod

R package to analyse Q methodology data
GNU General Public License v2.0
34 stars 18 forks source link

Improve message error in import.q.sorts #310

Closed aiorazabala closed 7 years ago

aiorazabala commented 8 years ago

In import.q.sorts() if the lookup table in manual.lookup is longer than it should be (e.g. 40 statements instead of 30), the function throws the following error

Error in current.sort[current.sort == id] <- handle : 
  replacement has length zero

Maybe add a line of code with an error message indicating that the reason for this error is that the manual.lookup might be wrong?

maxheld83 commented 8 years ago

will do!

maxheld83 commented 8 years ago

duplicate of https://github.com/maxheld83/pensieve/issues/94