[R] Loading an S object into R

Joshua Wiley jwiley.psych at gmail.com
Tue May 24 18:19:55 CEST 2011


Hi Benjamin,

I also have no experience with S plus, but the suggestions on the R
Import/Export manual seem worth trying:

http://cran.r-project.org/doc/manuals/R-data.html#EpiInfo-Minitab-SAS-S_002dPLUS-SPSS-Stata-Systat

I also question whether this is just data, words like "loglik",
"iter", etc. seem more like a model object of some kind (which I
suppose is a type of data, but...)

Good luck,

Josh

On Tue, May 24, 2011 at 8:24 AM, Nutter, Benjamin <NutterB at ccf.org> wrote:
>
> I hope you'll all forgive me for displaying my severe lack of knowledge on this topic, and I can't really provide much in the way of reproducible code.
>
> A colleague of mine has asked if I know how to import an S object into R.  The object is stored in a file named 'pre3.f'   When I open the file as a text document I get what's printed below.  Being one of those young bucks with no experience with S, and not having access to a license of S in which to play with this, does anyone have any suggestions on how to get this (what I assume is) data from the .f file into R?
>
> Benjamin
>
>
>
> S data
>   .Data class                 8   €-  ß   coefficients var loglik score iter linear.predictors residuals means terms n call Design assign na.action fail non.slopes stats method maxtime time.inc units fitFunction center scale.pred x y time surv std.err surv.summary                                         ,
>
>
>       À       À       ƒ   €   K          [       c       g       d`  a·  Á·   À  (Á  -Å  ÄÍ  ’Î  ;à  ?à  Gà  âà  ìà  ôà  üà   á   á   á  ?á  %’       &  ¾)  ¾,
>   .Data .Names
>
>   ¬
>   ŧ À 1Æ?1o`kŠ É¿E…­: ñ¯¿•¤28q|á?9V
> 9`™Ì?7ÏCÌ%¼æ?K I¸Éèó?œ?±Bt0ê?K#4¢öª?\½ÿ_ï“°¿d  }˜e±¿‡çÏ=6ìá¿p   PREOP.PSA PREOP.PSA' T.STG=T2A T.STG=T2B T.STG=T2C T.STG=T3 G1=> 3 G2=> 3 BX.POS BX.NEG RP.YEAR G1=> 3 * G2=> 3     .Data .Dim .Dimnames                         ½   =   E   6¨¢wåÈa?®_¨JM g¿˜ªjŒðÊE?  ¡rVÍ>? ò› T­Ñ>W DôOw:?–
>  ...
> SA?;_ws6Ê@?(ó èLp@¿  öšQEF?ŠVU9X f?… —ï’[¿Ÿ¹ê'¬ÏT? Ó×-’91¿×ÈF ¡Ú¯¿K ?Ø'  ¿øP¼<ÕJf? Ó  P
> (¿;_ws6Ê@?%–ô£k1¾?
>
>
>
>   c   ×   p   PREOP.PSA PREOP.PSA' T.STG=T2A T.STG=T2B T.STG=T2C T.STG=T3 G1=> 3 G2=> 3 BX.POS BX.NEG RP.YEAR G1=> 3 * G2=> 3 p   PREOP.PSA PREOP.PSA' T.STG=T2A T.STG=T2B T.STG=T2C T.STG=T3 G1=> 3 G2=> 3 BX.POS BX.NEG RP.YEAR G1=> 3 * G2=> 3 ÔwÎ
> 8"”Àñp|ù°»’ÀI=ÍΊ=l@
>   .Data .Names         Ð   Ð              @   õ‹•obð?@+
> tYÜ @@Ð ×Æa
> @À‚ j
> ç @€ã
> øqý
> @@.ŸŸ B
> @@?œ(°ˆ
> @€ 'w¹æý?€z¾
> ...
> â?      ¡"’ø¿ ˆÄ]¤eð¿ ¦ mÉëå¿ Ð‚v ×ç¿€
> ˆ"Wcó¿€  ù¬Oô¿ €[iŸìÅ¿€ 2#_? À X×
> äIÊ?
> K Zªó¿ (ù' ~ä¿ uÊ ä á¿ àø¤:üÙ¿ ’ ëu Ô¿ »­Ý›²ð¿ déÂg«Ï? üÄ" NÊ¿ J³ – ñ¿  ´¶}Òh¿€ž8r Nù¿ uí {[ð¿ €‰¡íu©¿ è  í Ñ¿ N  ðÚ׿ z0QÂ_ï?  Í¤>³×¿ æGM’Iå¿ ½ÜG çâ¿ È*ùö»ò¿ ‚Õ ½à¿ 8î vç÷¿ °¦­nMß¿ «‹ 9Ýô¿ PŒãC ¸¿€° jø£ù¿  ›»›      ×? <²<ñ ð¿ V    òÝmï¿€ =CÀ‡ó¿€NíÈ‘ ñ? £Yï² ÷¿€ÇŒHuKÿ¿ ävw™ ö¿ ùÄSdgö¿ /Ï¸á  À ${ Fƒü¿ N—$ÕSá¿€U~A© ù¿€Ÿ š»âû¿€h±š–àú¿ 2ŒÜ ?ú¿
> Ï `ä¿ \ #‘‰î¿ r c¯^é¿€Z&«¿/ü¿  K Õ”õ¿ ·râ ¯ô¿€¤lJüíô¿ -
> \
> ›ã¿€M‚
> ªôñ¿@˺º×Ä À Ä ¥.vú¿ ·Ûô ›õ¿ ¿¦3p×è¿€'ÆûSÕú¿ S7ôîÓð¿ X 9=       î¿€
> ž QÎö¿ ¶ .Ì2ú¿€·Â9['ú¿€ œ—Ç ÿ¿ LÌFœ_æ? FÿŒ7Ÿú¿P   2 3 4 5 6 8 13 15 18 21 22 24 25 26 28 31 32 34 37 39 40 42 45 46 49 53 54 60 61 62 65 74 75 78 79 81 82 83 84 85 90 91 93 94 95 100 102 103 104 105 106 110 112 114 116 117 119 123 127 128 130 132 137 138 141 143 145 146 152 153 154 155 164 167 168 171 175 177 179 180 181 182 187 188 189 193 195 198 199 200 201 204 206 216 220 221 230 233 236 237 239 241 242 248 253 257 258 259 261 263 267 268 275 276 277 279 283 284 286 293 294 297 299 300 301 304 306 307 308 310 313 317 320 327 328 330 331 336 337 338 339 342 346 347 349 351 358 359 360 361 362 363 366 368 369 370 373 377 384 388 390 391 395 397 401 402 403 407 ...
>  3522 3523 3524 3525 3526 3527 3528 3529 3530 3537 3541 3545 3548 3554 3555 3558 3560 3561 3562 3563 3565 3570 3572 3576 3577 3581 3582 3583 3584 3585 3586 3587 3588 3589 3597 3600 3601 3603 3604 3606 3607 3610 3612 3613 3615 3616 3617 3618 3619 3620 3626 3627 3628 3632 3633 3635 3636 3642 3643 3646 3647 3648 3649 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3669 3671 3672 3673 3674 3686 3687 3688 3689 3690 3691 3693 3694 3695 3696 3697 3698 3709 3710 3711 3713 3719 3722 3726 3728 3729 3730 3732 3733 3734 3735 3736 3737 3740 3741 3742 3743 3744 3746 3756 3758 3759 3760 3761 3762 3766 3767 3768 3769 3770 3771 3772 3777 3783 3784 3787 3788 3789 3790 3791 3792 3795 3798 3801 3802 3803 3805 3814 3817 3818 3819 3821 3822 3824 3826 3836 3837 3838 3840 3841 3842 3848 3850 3854 3855 3856 3857 3858 3864 3868 3870 3871 3878 3884 3888 3898 3900 3901 3902 3903 3904 3905 3912 3914 3915 3916 3917 3918 3921 3924 3927 3928 3930 3931 3932 3935 3946 3947 3948 3949 3951 3952 3954 3957 3958 3961 3963 3964 3971 3981 3985 3988 4007 4014 4015
>   .Data .Names         Ð   Ð    `
> ...
>
> ===================================
>
>  Please consider the environment before printing this e-mail
>
> Cleveland Clinic is ranked one of the top hospitals
> in America by U.S.News & World Report (2010).
> Visit us online at http://www.clevelandclinic.org for
> a complete listing of our services, staff and
> locations.
>
>
> Confidentiality Note:  This message is intended for use
> only by the individual or entity to which it is addressed
> and may contain information that is privileged,
> confidential, and exempt from disclosure under applicable
> law.  If the reader of this message is not the intended
> recipient or the employee or agent responsible for
> delivering the message to the intended recipient, you are
> hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited.  If
> you have received this communication in error,  please
> contact the sender immediately and destroy the material in
> its entirety, whether electronic or hard copy.  Thank you.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/


More information about the R-help mailing list