Michele Scarpa Posted March 11, 2020 Share Posted March 11, 2020 Hello, hello i created a data funcion installingfitdistrplus library to get weibull distribution parameters: fitdistrplus::mledist(input1, "weibull", lower=c(0,0)) when I force the lower parameters limit to avoid errors for distribution with smallshape or scale parameters, spotfire returns the following error eventhough it works fine in R studio with the very same library version. TIBCO Enterprise Runtime for R returned an error: 'Error in fitdistrplus::mledist(input1, "weibull", lower = c(0, 0)) : argument is of length zero eval(expr, envir, enclos) eval(expr, envir, enclos) distribution_check(input1) fitdistrplus::mledist(input1, "weibull", lower = c(0, 0))'. at Spotfire.Dxp.Data.DataFunctions.Executors.LocalFunctionClient.OnExecuting() at Spotfire.Dxp.Data.DataFunctions.Executors.AbstractFunctionClient.d__0.MoveNext() at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.d__0.MoveNext() at Spotfire.Dxp.Data.Methods.TerrAggregation`1.Worker(CxxSession session, UInt64 groupCount, CxxTable tempTable, CxxReader[] dependencies, CxxWriter writer, IList`1 propertyGetters) Can anyone sugest me a solution Thanks Michele Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted March 11, 2020 Share Posted March 11, 2020 Can you check if any of input1 value is null Is it column type Link to comment Share on other sites More sharing options...
Michele Scarpa Posted March 11, 2020 Author Share Posted March 11, 2020 Hello Khushboo, there are no null in the column that is Real as Type. using fitdistrplus::mledist(input1, "weibull") it works well but it is not what I am looking for. Regards Michele Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted March 11, 2020 Share Posted March 11, 2020 Would it be possible to provide a sample dataset/dxp and expected output screenshot/records would help to narrow down the issue between TERR and R 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