We use cookies, including third-party cookies from Google to serve personalized ads through AdSense, to operate this site and understand how it is used. By continuing to browse, you accept this use. See our Privacy Policy and Terms of Use for details, including how to opt out of personalized advertising.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    What Kind of Problem-Solving Distinguishes Data Analysts From Software Engineers -- AI-generated illustration
    What Kind of Problem-Solving Distinguishes Data Analysts From Software Engineers
    7 Min Read
    chatgpt image jul 21, 2026, 04 34 30 pm
    4 Core Benefits of Predictive Maintenance after Vibration Analysis
    10 Min Read
    How Does Data Mining Boost Customer Satisfaction in Logistics? Harnessing Analytics for Results -- AI-generated illustration
    How Does Data Mining Boost Customer Satisfaction in Logistics? Harnessing Analytics for Results
    11 Min Read
    chatgpt image jul 13, 2026, 04 23 45 pm
    How Data Analytics Helps Companies Improve User Engagement
    19 Min Read
    chatgpt image jul 13, 2026, 03 59 46 pm
    How Data Analytics Improves Multi-Location Search Strategies
    10 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Importing Public Data with SAS Instructions into R
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Importing Public Data with SAS Instructions into R
Uncategorized

Importing Public Data with SAS Instructions into R

DavidMSmith
DavidMSmith
2 Min Read
Importing Public Data with SAS Instructions into R
Illustration generated with Qwen Image.
SHARE

Many public agencies release data in a fixed-format ASCII (FWF) format. But with the data all packed together without separators, you need a “data dictionary” defining the column widths (and metadata about the variables) to make sense of them. Unfortunately, many agencies make such information available only as a SAS script, with the column information embedded in a PROC IMPORT statement.

To solve this problem, R user Anthony Damico (who’s also the energetic voice behind the excellent R Twotorials series) created the SAScii package. It parses the SAS script (or even an unstructured text instructions file, with a PROC IMPORT statement included), and uses that information to read the associated fix-format ASCII file. Just provide the name or URL of the script/instructions file and the data file, and SAScii does the rest. There are several examples in the read.SAScii helpfile, including the R command to read the following public data sets:

  • 2009 Medical Expenditure Panel Survey Emergency Room Visits File (Medical Expenditure Panel Survey)
  • 2010 National Health Interview Survey Persons file (CDC)
  • IPUMS – American Community Survey Extract (Minnesota Population Center)
  • 2008 Survey of Income and Program Participation Wave 1 (US Census)

Many thanks to Anthony for creating this package and pointing it out to me at the useR!2102 conference last month. It unlocks many useful public data sets for those of us without SAS licenses.

SAScii package: read.SAScii documentation

More Read

"Entry Point: The Call Center or the Death Star
“Entry Point: The Call Center or the Death Star
New Underground Data Center Trend Takes Hold
Perfect Survey Series: Planning & Executing
Judgmental Adjustments to the Forecast
Social Collaboration Barriers in SMBs and Enterprises
Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

Flat editorial illustration: The article connects duplicate and decayed CRM records to distorted attribution; a SaaS-editorial sc
Your Attribution Model Is Fine. Your CRM Is Lying to It
Business Intelligence Exclusive
Flat editorial illustration: The article is about replacing informal co-located management with deliberate asynchronous workflows
Managing a Software Development Dedicated Team Across Time Zones
Development Exclusive Software
Technical architecture diagram and decision framework for wikipedia editing services and ai training data: why llms still treat wikipedia as a source of truth
Wikipedia Editing Services and AI Training Data: Why LLMs Still Treat Wikipedia as a Source of Truth
Artificial Intelligence Exclusive
Flat editorial illustration: The article connects fragmented social-service records through shared pathways and selective informa
Turning Disconnected Information Data Into Better Social Service Outcomes
Big Data

Stay Connected

1.2KFollowersLike
33.7KFollowersFollow
222FollowersPin

You Might also Like

Metrics and Numbers You Should Know if You Want to Measure Social Media ROI
Uncategorized

Metrics and Numbers You Should Know if You Want to Measure Social Media ROI

7 Min Read
Characteristics of a Social Media Strategist
Uncategorized

Characteristics of a Social Media Strategist

5 Min Read
How Much Longer Until Flash Storage is the Only Storage?
Uncategorized

How Much Longer Until Flash Storage is the Only Storage?

7 Min Read
Implementing Enterprise 2.0 at Intuit, Part Four: Tecon and Encouraging Use
Uncategorized

Implementing Enterprise 2.0 at Intuit, Part Four: Tecon and Encouraging Use

7 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

How To Get An Award Winning Giveaway Bot
How To Get An Award Winning Giveaway Bot
Big Data Chatbots Exclusive
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-26 SmartData Collective. All Rights Reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?