vjdorazio / TwoRavens

A web application for data exploration, statistical analysis, model construction and meta analysis tools, that integrates with Zelig and Dataverse.
http://datascience.iq.harvard.edu/tworavens
Other
1 stars 4 forks source link

transform function failing, may be missing parameter #7

Closed raprasad closed 6 years ago

raprasad commented 6 years ago

scenario

  1. fearonLaitin test data loads
  2. pop variable selected
  3. attempt transform of d^2
  4. error from R:
    {"warning":["Transformation error:  Error in parse(text = x): <text>:2:0: unexpected end of input\n1: data[,1] <-  \n   ^\n"

Likely cause

The type of transform was passed into the subset call.

{
   "zdataurl":"https://dataverse.harvard.edu/api/access/datafile/3044420?key=7ff25f5a-8d5c-4dca-bbc0-47b7c901a602",
   "zvars":"pop",
   "zsessionid":"17612430-a459-4e72-a49c-451ce1f12e13",
   "transform":"_transvar0^2",
   "callHistory":[

   ],
   "typeTransform":false,
   "typeStuff":{
      "varnamesTypes":"pop",
      "interval":"continuous",
      "numchar":"numeric",
      "nature":"ratio",
      "binary":"no"
   }
}
{
   "zvars":"pop",
   "zsessionid":"74082DD6-A2F5-4F80-845C-058CDC77F6FB",
   "transform":"",
   "callHistory":[

   ],
   "typeTransform":false,
   "typeStuff":{
      "varnamesTypes":"pop",
      "interval":"continuous",
      "numchar":"numeric",
      "nature":"ratio",
      "binary":"no"
   }
}
raprasad commented 6 years ago

two fixes: