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

Have you ever wanted to read data directly from a web site without needing to download it to an intermediate file for import.  Below are approaches that may be used to read data directly from a URL.

R

handle <- url("http://datasite.com")
dta <- readLines(handle)

SAS

filename handle url 'http://datasite.com';
proc import datafile=handle out=dta;
run;

Leave a Reply


8 − two =