Datafunction error

Last post Wed, Nov 16 2011 4:56 PM by Adam Marczak. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Oct 11 2011 7:12 AM

    Datafunction error


    I am trying to increment the values of one column in a table by 1. I tried to write a datafunction using R script as.

     result <- Number+[1]

    where result is the outparameter and Number is one of the columns in my table but I am getting following error when trying to insert.

     TIBCO Spotfire Statistics Services returned an error: 'parse(text = script) : unexpected symbol in "{};{result <-Number"'.
       at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.<ExecuteFunction>d__12.MoveNext()
       at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__6.MoveNext()

    Please suggest where I am going wrong. I am trying to learn about Datafunctions

  • Wed, Nov 16 2011 4:56 PM In reply to

    Re: Datafunction error

    Hi

    You did not put much of a code here but if this is entire code that you are trying to run then "Number+[1]" is an actual syntax error.

    In Splus to increment column (table of numeric values) by 1 simply write "Number+1" e.g. "result
Page 1 of 1 (2 items)

Spotfire's interactive information visualization and analytic solutions give users a remarkable experience for quickly and easily querying data and reporting results for superior business intelligence. From portfolio management and customer retention programs to key processes such as CRM, marketing, research, bioinformatics, yield and asset management and design for manufacturing, enterprises around the world rely on Spotfire's business analytics software to improve operational performance.

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center