Jump to content

Using R stats spectrum package in TERR


Ted Snyder 2

Recommended Posts

Hi,

I am trying out TERR version 5.0.0 with Spotfire Analyst 10.4. I would like to move an R script from R Studio into TERR so I can use it interactively.

My script uses the spectrum() function from the core stats library:https://www.rdocumentation.org/packages/stats/versions/3.6.1/topics/spectrum. The script will generate a data framethat I want to return to Spotfire for visualization.

> x.spec

Link to comment
Share on other sites

The spectrum() function has not been implemented in TERR, but you can use the REvaluate() function from TERR's optional built-in "RinR" package to send data and R expressions out for processing by an open-source R instance you have downloaded and installed on the same machine.

 

The following public knowledge base article provides information on this approach, including a small generic example:

 

https://support.tibco.com/s/article/How-to-use-the-data-and-expr-argumen...

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...