1 Reply Latest reply on Jul 4, 2018 6:01 AM by Sebastian Sofariu

    The result returned by the SCRIPT function is of an unexpected type.

    pranay t

      Here is the calculation I am executing in Tableau

      SCRIPT_STR("

      library(tidytext)

      library(dplyr)

      library(wordcloud)

       

      Text_df <- data_frame(txt=.arg1)

      token.description <- Text_df %>% unnest_tokens(word,txt)

      tidy_descrition <- token.description %>%

      anti_join(stop_words);",

      ATTR([Description]))

       

      &

       

      When the same logical script executed in R. I am able to convert the description into tokens.

      library(tidytext)

      library(dplyr)

      library(wordcloud)

      library(Rserve)

       

       

      Textset<-read.csv("Sample45.csv",stringsAsFactors = FALSE)

      class(Textset)

      Text_df<- data_frame(Name =Textset$xxxxx.Name,Text=Textset$xxxxx.Discription)

      token.description <- Text_df %>% unnest_tokens(word,Text)

      tidy_token <- token.description %>%

      anti_join(stop_words)

       

      Attatched is the sample work book used for the code.