cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-213878%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ELoading%20R%20.rds%20files%20into%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-213878%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWe%20have%20some%20equipment%20that%20publishes%20results%20in%20an%20.rds%20files--an%20R%20file%20format.%26nbsp%3B%20I%20can%20find%20how%20to%20read%20a%20JMP%20file%20into%20R%2C%20but%20I'd%20like%20to%20read%20the%20R%20%2F%20.rds%20file%20into%20JMP.%26nbsp%3B%20Does%20anyone%20have%20some%20code%20snippets%20that%20would%20do%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3ERay%20Bunkofske%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-269634%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Loading%20R%20.rds%20files%20into%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-269634%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAnyone%20has%20an%20easy%20solution%3F%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-214010%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Loading%20R%20.rds%20files%20into%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-214010%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EWhat%20I%20know%20about%20R%20you%20can%20put%20in%20a%20thimble.%20Can%20I%20set%20it%20up%20as%20a%20JMP%20function%20so%20that%20the%20user%20can%20stay%20within%20the%20JMP%20script%3F%20I'm%20trying%20to%20build%20a%20dataflow%20that%3A%20looks%20in%20a%20directory%2C%20loads%20the%20R%20files%2C%20creates%20several%20JMP%20reports%20and%20saves%20the%20JMP%20data%20files%20with%20the%20reports%20embedded.%20That%20way%20folks%20can%20view%20the%20reports%2C%20and%20do%20further%20drill-down%20with%20the%20complete%20data%20file.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-213997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Loading%20R%20.rds%20files%20into%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-213997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EYou%20can%20run%20this%20from%20JMP%2C%20however%20you%20will%20have%20to%20submit%20r%20code%20that%20opens%20the%20.rds%20file%20in%20r%2C%20and%20then%20use%20an%20r%20get()%20function%20to%20transfer%20the%20data%20frame%20in%20r%20to%20a%20data%20table%20in%20JMP.%3C%2FP%3E%0A%3CP%3ESee%20the%20JSL%20Scripting%20Guide%20section%20on%20Extending%20JMP%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20Help%3D%3D%26gt%3BBooks%3D%3D%26gt%3BScripting%20Guide%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-213962%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Loading%20R%20.rds%20files%20into%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-213962%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EMy%20approach%20would%20be%20to%20simply%20call%20out%20to%20R%20on%20your%20computer%20and%20execute%20the%20readRDS()%20function%20to%20pull%20the%20data%20in%20that%20way.%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
vt_sailor
Level II

Loading R .rds files into JMP

We have some equipment that publishes results in an .rds files--an R file format.  I can find how to read a JMP file into R, but I'd like to read the R / .rds file into JMP.  Does anyone have some code snippets that would do this?

 

Thanks!

Ray Bunkofske

4 REPLIES 4
andersonmj2
Level IV

Re: Loading R .rds files into JMP

My approach would be to simply call out to R on your computer and execute the readRDS() function to pull the data in that way.
vt_sailor
Level II

Re: Loading R .rds files into JMP

What I know about R you can put in a thimble. Can I set it up as a JMP function so that the user can stay within the JMP script? I'm trying to build a dataflow that: looks in a directory, loads the R files, creates several JMP reports and saves the JMP data files with the reports embedded. That way folks can view the reports, and do further drill-down with the complete data file.
txnelson
Super User

Re: Loading R .rds files into JMP

You can run this from JMP, however you will have to submit r code that opens the .rds file in r, and then use an r get() function to transfer the data frame in r to a data table in JMP.

See the JSL Scripting Guide section on Extending JMP

     Help==>Books==>Scripting Guide

Jim
Cougar
Level I

Re: Loading R .rds files into JMP

Anyone has an easy solution? thanks

Recommended Articles