Hello
I want to create 2 dimensional summary table.
What is the way to remove column with value " HORSEPOWER " and remove column with value " Mean" from output?
proc tabulate data=sashelp.cars ;
class ORIGIN TYPE ;
var HORSEPOWER;
table TYPE*HORSEPOWER*mean, ORIGIN;
run;
table TYPE*HORSEPOWER=''*mean='', ORIGIN
table TYPE*HORSEPOWER=''*mean='', ORIGIN
Thank you.
In your code solution I still see columns but they are empty.
How can I remove the columns?
proc tabulate data=sashelp.cars ;
class ORIGIN TYPE ;
var HORSEPOWER;
table TYPE*HORSEPOWER=''*mean='', ORIGIN;
run;
Hi:
change the TABLE statement
TABLE.... ORIGIN / row=float;
after ORIGIN and BEFORE the semi-colon.
Cynthia
@Ronein wrote:
Thank you.
In your code solution I still see columns but they are empty.
How can I remove the columns?
proc tabulate data=sashelp.cars ; class ORIGIN TYPE ; var HORSEPOWER; table TYPE*HORSEPOWER=''*mean='', ORIGIN; run;
Perhaps
proc tabulate data=sashelp.cars ;
class ORIGIN TYPE ;
var HORSEPOWER;
table TYPE*HORSEPOWER=''*mean='',
ORIGIN
/row=float
;
run;
but the appearance with row=float can change depending on ODS destination.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.