skip to main | skip to sidebar

SAS it up

getting down with SAS.

Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Monday, March 17, 2008

magic code to transform R data with 'NA' for missing to SAS '.'

array inc dlfib--dlcrp;
do i = 1 to 4;
if inc[i]='NA' then inc[i]=.;
end;
drop i;
run;
Posted by eh at 5:26 PM No comments:
Labels: missing data, R, recode
Older Posts Home
Subscribe to: Posts (Atom)

My Blog List

  • SAS on UNIX@hsph
    direct filename with path to a file
    15 years ago
  • SAS Tips | Published Tips

Labels

  • categorize
  • format
  • histogram
  • missing data
  • mixed models
  • plot
  • R
  • recode

Blog Archive

  • ▼  2009 (1)
    • ▼  July (1)
      • remove formats or labels
  • ►  2008 (2)
    • ►  July (1)
    • ►  March (1)
  • ►  2007 (7)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (4)