Michael Ng Posted November 8, 2021 Share Posted November 8, 2021 Tried making a data function based on this info:https://community.spotfire.com/questions/self-referential-calculated-column... I am not too sure why it returns this error below: TIBCO Enterprise Runtime for R returned an error (10) The data function 'SubAssyScript' could not be executed. Error in eval(expr, envir, enclos) : argument is of length zero eval(expr, envir, enclos) eval(expr, envir, enclos) Script: # Define Variables L Link to comment Share on other sites More sharing options...
Fabian Duerr Posted November 9, 2021 Share Posted November 9, 2021 This could be an indexing issue. Your sequence starts at 1 and you try to compare X[1] with S[0]. But S[0] doesn't exist. R starts counting at 1, not like Python that starts with 0. Please make sure to catch the issues with your first/last index when you compare across different data rows. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now