Two of my favorite string-manipulation functions in the SAS DATA step are the COUNTW function and the SCAN function. The COUNTW function counts the number of words in a long string of text. Here "word" means a substring that is delimited by special characters, such as a space character, a
English
Break a sentence into words in SAS
Polar Graph - Wind Rose
Last week I posted an article on displaying polar graph using SAS. When the measured data (R, Theta) are in the polar coordinates as radius and angle, then this data can be easily transformed into the XY space using the simple transform shown below. x=r*cos(theta * PI / 180); y=r*sin(theta * PI
Apparently the cool kids don't smoke any more
I've noticed fewer and fewer people smoking these days, and was wondering who the last holdouts are. Let's run some numbers and find out... Back in the 1950s, 60s, and 70s it seems like almost everyone smoked. You hardly ever saw the "cool kids" such as James Dean without a cigarette -