Warning: Creating default object from empty value in /home3/science4/public_html/rconvert.com/Convert_SAS_To_R_Statistical_Data/wp-content/themes/optimize/functions/admin-hooks.php on line 160

Both SAS and R offer programmatic and GUI-based approaches for entering data.  In SAS, a spreadsheet-like tool may be accessed for data entry by selecting “viewtable” from the Tools menu.  Alternatively, SAS users working through Enterprise Guide may double-click on a table to reveal a spreadsheet for data entry.  In R, the data.entry() function may be ran on an object to reveal a similar spreadsheet.  Below are approaches for programmatic data entry.  It should be noted that the below examples are not exhaustive and that other methods exist for data entry in both languages.

R

x <- c(1.1, 2.1, 3.1)

SAS

data x;
input var1;
cards;
1.1
2.1
3.1
;
run;

Leave a Reply


3 − one =