<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://spotfirecommunity.tibco.com/community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>S&amp;#43; and R Scripts</title><link>http://spotfirecommunity.tibco.com/community/forums/36.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Datafunction error</title><link>http://spotfirecommunity.tibco.com/community/forums/thread/8302.aspx</link><pubDate>Thu, 17 Nov 2011 00:56:43 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:8302</guid><dc:creator>Adam Marczak</dc:creator><slash:comments>0</slash:comments><comments>http://spotfirecommunity.tibco.com/community/forums/thread/8302.aspx</comments><wfw:commentRss>http://spotfirecommunity.tibco.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=8302</wfw:commentRss><description>Hi &lt;br /&gt;
 &lt;br /&gt;
You did not put much of a code here but if this is entire code that you are trying to run then &amp;quot;Number+[1]&amp;quot; is an actual syntax error. &lt;br /&gt;
&lt;br /&gt;
In Splus to increment column (table of numeric values) by 1 simply write &amp;quot;Number+1&amp;quot; e.g.  &amp;quot;result &lt;br /&gt;</description></item><item><title>Datafunction error</title><link>http://spotfirecommunity.tibco.com/community/forums/thread/7818.aspx</link><pubDate>Tue, 11 Oct 2011 14:12:22 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:7818</guid><dc:creator>rswathilakshmi</dc:creator><slash:comments>0</slash:comments><comments>http://spotfirecommunity.tibco.com/community/forums/thread/7818.aspx</comments><wfw:commentRss>http://spotfirecommunity.tibco.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=7818</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;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. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;result &amp;lt;- Number+[1]&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TIBCO Spotfire Statistics Services returned an error: &amp;#39;parse(text = script) : unexpected symbol in &amp;quot;{};{result &amp;lt;-Number&amp;quot;&amp;#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.&amp;lt;ExecuteFunction&amp;gt;d__12.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.&amp;lt;ExecuteFunction&amp;gt;d__6.MoveNext()&lt;/p&gt;
&lt;p&gt;Please suggest where I am going wrong. I am trying to learn about Datafunctions &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>