skip to main | skip to sidebar

SAS it up

getting down with SAS.

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
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

My Blog List

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

Labels

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

Blog Archive

  • ►  2009 (1)
    • ►  July (1)
  • ▼  2008 (2)
    • ►  July (1)
    • ▼  March (1)
      • magic code to transform R data with 'NA' for missi...
  • ►  2007 (7)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (4)