Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transposing variables in specific columns before importing #1

Open
baidw002 opened this issue May 1, 2019 · 1 comment
Open

Transposing variables in specific columns before importing #1

baidw002 opened this issue May 1, 2019 · 1 comment

Comments

@baidw002
Copy link

baidw002 commented May 1, 2019

Can we transpose variables in a specific column say column 3 (and rename column 3 to something like new_var) before we import?

@statgeek
Copy link
Owner

statgeek commented May 1, 2019

It depends on the structure of the data. You cannot transpose it, but there are various ways to read files that have data across multiple lines or have multiple records that you need to combine to one. Several of these are covered in the documentation about reading in data here:

Creating multiple records from a single line of data:
https://documentation.sas.com/?docsetId=basess&docsetTarget=n068wqvbjnndvjn17mqpoxdj7te7.htm&docsetVersion=9.4&locale=en

Create single record from multiple lines of data
https://documentation.sas.com/?docsetId=basess&docsetTarget=p0s16wvzu0z9q7n0zmxia30s6qyc.htm&docsetVersion=9.4&locale=en

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants