Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

How to pass Manually selected values to R script where some values are coming from data base.

vishu Tyagi

Recommended Posts

Hi Team,

I have a R script which is calculating similarity value for the parts and we are parseing the values throughCustom Expression. This R script is running the Formula (intersection/Total). For one single part we have multiple specification .So when we search a part we have specification for the part and compare these values to each part to get the result for each part available in data base. have intersetion for 2 parts Specification and divide by total of specification.

I have Parts and their Specification so we are calculating the Specification Similarity for the part withthe help of R script. Now i've requirement if any part does not have specification so we allow user to enter Specification and those specification need to pass through R script and calculate the result for similarity. while passing the manual specification value to R script i'm getting error. So can we pass a calculated column value to the R script and How to define the condition to get the values only when they are not available in Database.


Part Specification

Part A A1, A2,A3,A5,A6, B1, B2

Part B A1,A2,A3, B1,B2

Formula : (Intersection/Total of Specification)

Now we have Part C and that does not have spec how to pass the Specification values into R script

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...