10 Replies Latest reply on May 8, 2018 11:40 AM by mark schukas

    Calculated Field with R, Error Message

    mark schukas

      I get an Error Message: "result returned by the SCRIPT function is of an unexpected type"

       

      SCRIPT_STR('library(syuzhet);

      n<-as.character(.arg1);

      nrc_data <-get_nrc_sentiment(n);',

      (ATTR([Tweets])))

       

      in R (works well):

      library(syuzhet)

      spam.raw<-read.csv("Weather.csv",stringsAsFactors = FALSE)

      n <- as.character(spam.raw)

      nrc_data <- get_nrc_sentiment(n)

       

      ?

       

       

      thank you.