지식노동자의 노트

[R & SAS] Proc SQL 본문

R for SAS User

[R & SAS] Proc SQL

생각하는너구리 2017. 3. 15. 00:22
728x90

SQL문법 사용하기


1. SAS

proc sql;

create table iris_setosa as

select *

from sashelp.iris

where species='Setosa';

quit;



2. R

library(sqldf)

iris_setosa <- sqldf("select * from iris where species='setosa'")

반응형
Comments