BookmarkSubscribeRSS Feed
AnnaHawgood
Fluorite | Level 6

Hi

Is there a way of outputting Proc report results to R?

I am creating a report, where I want to combine tables created in SAS (Proc report) with graphs created in R.

 

So far I have tried outputting my tables to png-files and importing them in R, but I'm having problems with the size and resolution. I know that there must be a way of improving the size and resolution, but if there is a way of creating a R source file (equivalent to the Latex-example here: https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-print-a-SAS-table-as-an-image-gif-jpeg-...) I think it would work better for me.

 

Thanks!

Anna

2 REPLIES 2
JosvanderVelden
SAS Super FREQ
Have you seen this document "Streamline Your Workflow: Integrating SAS, LATEX, and R into a Single Reproducible Document by Lucy D’Agostino McGowan, Vanderbilt University"?
https://support.sas.com/resources/papers/proceedings17/0876-2017.pdf
AnnaHawgood
Fluorite | Level 6

I hadn't seen it - thanks!

I'll give it a read-through and see if I can make it work for me.

 

- Anna

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1281 views
  • 0 likes
  • 2 in conversation