tutorial r

14
7/21/2019 Tutorial R http://slidepdf.com/reader/full/tutorial-r-56d9ec4a57ee6 1/14 1.  , G , . , B J C . , , . E , ; () ; , . , . A (, ://..). A, . E ( ) . E , , , , . A , , . / :   , , ( , ) , .   .   : .   , , .  H , .  E .   , C/C++.  E E , C (), . , . E .

Upload: eduardo-guzman

Post on 05-Mar-2016

8 views

Category:

Documents


0 download

DESCRIPTION

Tutorial de estadística asistida por R

TRANSCRIPT

Page 1: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 114

983117983105983118983125983105983116 983108983109 983120983122983233983107983124983113983107983105983123 983107983119983118 983122

1 983113983118983124983122983119983108983125983107983107983113983251983118

983122 983156983137983149983138983145983273983150 983139983151983150983151983139983145983140983151 983139983151983149983151 991260G983118983125 983123991261 983141983155 983157983150 983141983150983156983151983154983150983151 983161 983157983150 983148983141983150983143983157983137983146983141 983140983141 983152983154983151983143983154983137983149983137983139983145983283983150 983152983137983154983137 983141983148 983139983265983148983139983157983148983151

983141983155983156983137983140983277983155983156983145983139983151 983161 983148983137 983143983141983150983141983154983137983139983145983283983150 983140983141 983143983154983265983142983145983139983151983155 983122 983145983149983152983148983141983149983141983150983156983137 983157983150 983140983145983137983148983141983139983156983151 983140983141983148 983152983154983141983149983145983137983140983151 983148983141983150983143983157983137983146983141 983123

983140983141983155983137983154983154983151983148983148983137983140983151 983141983150 983148983151983155 983116983137983138983151983154983137983156983151983154983145983151983155 B983141983148983148 983152983151983154 J983151983144983150 C983144983137983149983138983141983154983155 983141983156 983137983148 983120983154983151983158983141983141 983157983150 983137983139983139983141983155983151 983154983141983148983137983156983145983158983137983149983141983150983156983141

983155983141983150983139983145983148983148983151 983137 983157983150983137 983137983149983152983148983145983137 983158983137983154983145983141983140983137983140 983140983141 983156983273983139983150983145983139983137983155 983141983155983156983137983140983277983155983156983145983139983137983155 983161 983143983154983265983142983145983139983137983155 983161 983151983142983154983141983139983141 983157983150 983148983141983150983143983157983137983146983141 983140983141

983152983154983151983143983154983137983149983137983139983145983283983150 983139983151983149983152983148983141983156983151 983138983145983141983150 983140983141983155983137983154983154983151983148983148983137983140983151 983139983151983150 983141983148 983153983157983141 983137983281983137983140983145983154 983150983157983141983158983137983155 983156983273983139983150983145983139983137983155 983149983141983140983145983137983150983156983141 983148983137

983140983141983142983145983150983145983139983145983283983150 983140983141 983142983157983150983139983145983151983150983141983155 E983150983156983154983141 983151983156983154983137983155 983139983137983154983137983139983156983141983154983277983155983156983145983139983137983155 983140983145983155983152983151983150983141 983140983141 983137983148983149983137983139983141983150983137983149983145983141983150983156983151 983161 983149983137983150983145983152983157983148983137983139983145983283983150

983141983142983141983139983156983145983158983137 983140983141 983140983137983156983151983155 983151983152983141983154983137983140983151983154983141983155 983152983137983154983137 983139983265983148983139983157983148983151 983155983151983138983154983141 983158983137983154983145983137983138983148983141983155 983145983150983140983141983160983137983140983137983155 (983137983154983154983137983161983155) 983161 983141983150 983152983137983154983156983145983139983157983148983137983154

983149983137983156983154983145983139983141983155 983157983150983137 983137983149983152983148983145983137 983139983151983144983141983154983141983150983156983141 983141 983145983150983156983141983143983154983137983140983137 983139983151983148983141983139983139983145983283983150 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983161 983152983151983155983145983138983145983148983145983140983137983140983141983155 983143983154983265983142983145983139983137983155 983152983137983154983137

983137983150983265983148983145983155983145983155 983140983141 983140983137983156983151983155

983122 983141983155 983157983150 983141983150983156983151983154983150983151 983141983150 983141983148 983153983157983141 983155983141 983144983137983150 983145983149983152983148983141983149983141983150983156983137983140983151 983149983157983139983144983137983155 983156983273983139983150983145983139983137983155 983141983155983156983137983140983277983155983156983145983139983137983155 983156983137983150983156983151 983139983148983265983155983145983139983137983155 983139983151983149983151

983149983151983140983141983154983150983137983155 A983148983143983157983150983137983155 983141983155983156983265983150 983145983150983139983148983157983145983140983137983155 983141983150 983141983148 983141983150983156983151983154983150983151 983138983137983155983141 983140983141 983122 983161 983151983156983154983137983155 983155983141 983137983139983151983149983152983137983281983137983150 983141983150 983142983151983154983149983137 983140983141

983138983145983138983148983145983151983156983141983139983137983155 (983152983137983139983147983137983143983141983155 983140983145983155983152983151983150983145983138983148983141983155 983141983150 983144983156983156983152983159983159983159983154983085983152983154983151983146983141983139983156983151983154983143) A983139983156983157983137983148983149983141983150983156983141 983122 983161 983123 983155983151983150 983148983151983155 983140983151983155

983148983141983150983143983157983137983146983141983155 983149983265983155 983157983156983145983148983145983162983137983140983151983155 983141983150 983145983150983158983141983155983156983145983143983137983139983145983283983150 983141983150 983141983155983156983137983140983277983155983156983145983139983137

E983160983145983155983156983141 983157983150983137 983140983145983142983141983154983141983150983139983145983137 983142983157983150983140983137983149983141983150983156983137983148 983141983150 983148983137 983142983145983148983151983155983151983142983277983137 983153983157983141 983155983157983138983161983137983139983141 983141983150 983122 (983151 983123) 983161 983148983137 983140983141 983151983156983154983151983155 983155983145983155983156983141983149983137983155

983141983155983156983137983140983277983155983156983145983139983151983155 E983150 983122 983157983150 983137983150983265983148983145983155983145983155 983141983155983156983137983140983277983155983156983145983139983151 983155983141 983154983141983137983148983145983162983137 983141983150 983157983150983137 983155983141983154983145983141 983140983141 983152983137983155983151983155 983139983151983150 983157983150983151983155 983154983141983155983157983148983156983137983140983151983155

983145983150983156983141983154983149983141983140983145983151983155 983153983157983141 983155983141 983158983137983150 983137983148983149983137983139983141983150983137983150983140983151 983141983150 983151983138983146983141983156983151983155 983153983157983141 983152983157983141983140983141983150 983155983141983154 983151983138983155983141983154983158983137983140983151983155 983151 983137983150983137983148983145983162983137983140983151983155983152983151983155983156983141983154983145983151983154983149983141983150983156983141 983152983154983151983140983157983139983145983141983150983140983151 983157983150983137983155 983155983137983148983145983140983137983155 983149983277983150983145983149983137983155 983123983145983150 983141983149983138983137983154983143983151 983141983150 983123A983123 983151 983123983120983123983123 983155983141 983151983138983156983141983150983140983154983265 983140983141

983149983151983140983151 983145983150983149983141983140983145983137983156983151 983157983150983137 983155983137983148983145983140983137 983139983151983152983145983151983155983137 983152983137983154983137 983139983157983137983148983153983157983145983141983154 983137983150983265983148983145983155983145983155 983152983151983154 983141983146983141983149983152983148983151 983157983150983137 983154983141983143983154983141983155983145983283983150 983151 983157983150 983137983150983265983148983145983155983145983155

983140983145983155983139983154983145983149983145983150983137983150983156983141

983116983151983155 983143983154983137983150983140983141983155 983137983156983154983137983139983156983145983158983151983155 983140983141 983122983123 983155983151983150

983116983137 983139983137983152983137983139983145983140983137983140 983140983141 983139983151983149983138983145983150983137983154 983155983145983150 983142983145983155983157983154983137983155 983137983150983265983148983145983155983145983155 991260983152983154983141983141983149983152983137983153983157983141983156983137983140983151983155991261 (983152983151983154 983141983146983141983149983152983148983151 983157983150983137

983154983141983143983154983141983155983145983283983150 983148983151983143983277983155983156983145983139983137) 983139983151983150 983137983150983265983148983145983155983145983155 983137983140983085983144983151983139 983141983155983152983141983139983277983142983145983139983151983155 983152983137983154983137 983157983150983137 983155983145983156983157983137983139983145983283983150

983116983137 983139983137983152983137983139983145983140983137983140 983140983141 983149983137983150983145983152983157983148983137983154 983161 983149983151983140983145983142983145983139983137983154 983140983137983156983151983155 983161 983142983157983150983139983145983151983150983141983155

983116983151983155 983143983154983265983142983145983139983151983155 983140983141 983137983148983156983137 983139983137983148983145983140983137983140 983158983145983155983157983137983148983145983162983137983139983145983283983150 983140983141 983140983137983156983151983155 983161 983152983154983151983140983157983139983139983145983283983150 983140983141 983143983154983265983142983145983139983151983155

983116983137 983139983151983149983157983150983145983140983137983140 983140983141 983122 983141983155 983149983157983161 983140983145983150983265983149983145983139983137 983139983151983150 983143983154983137983150 983139983154983141983139983145983149983145983141983150983156983151 983140983141983148 983150983290983149983141983154983151 983140983141 983152983137983153983157983141983156983141983155 983141

983145983150983156983141983143983154983137983140983137 983152983151983154 983141983155983156983137983140983277983155983156983145983139983151983155 983140983141 983143983154983137983150 983154983141983150983151983149983138983154983141

H983137983161 983141983160983156983141983150983155983145983151983150983141983155 983141983155983152983141983139983277983142983145983139983137983155 983137 983150983157983141983158983137983155 983265983154983141983137983155 983139983151983149983151 983138983145983151983145983150983142983151983154983149983265983156983145983139983137 983143983141983151983141983155983156983137983140983277983155983156983145983139983137 983161

983149983151983140983141983148983151983155 983143983154983265983142983145983139983151983155

E983155 983157983150 983148983141983150983143983157983137983146983141 983151983154983145983141983150983156983137983140983151 983137 983151983138983146983141983156983151983155

983123983141 983152983137983154983141983139983141 983137 983117983137983156983148983137983138 983161 983137 983119983139983156983137983158983141 983161 983155983157 983155983145983150983156983137983160983145983155 983154983141983139983157983141983154983140983137 983137 CC++

E983155 983143983154983137983156983157983145983156983151 983161 983155983157 983140983141983155983139983137983154983143983137 983141 983145983150983155983156983137983148983137983139983145983283983150 983155983151983150 983155983141983150983139983145983148983148983137983155

E983150983156983154983141 983151983156983154983151983155 983158983137983149983151983155 983137 983157983156983145983148983145983162983137983154 983141983150 983141983155983156983137983155 983152983154983265983139983156983145983139983137983155 983141983148 983152983137983153983157983141983156983141 983122 C983151983149983149983137983150983140983141983154 (983122983139983149983140983154) 983153983157983141 983152983154983151983152983151983154983139983145983151983150983137

983157983150 983141983150983156983151983154983150983151 983143983154983265983142983145983139983151 983153983157983141 983142983137983139983145983148983145983156983137 983141983148 983149983137983150983141983146983151 983140983141 983122 983161 983155983145983154983158983141 983139983151983149983151 983143983141983150983141983154983137983140983151983154 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983120983137983154983137 983156983137983154983141983137983155

983155983141983150983139983145983148983148983137983155 983141983155 983152983151983155983145983138983148983141 983153983157983141 983150983151 983155983141 983150983141983139983141983155983145983156983141 983151983156983154983151 983150983145983158983141983148 983140983141 983157983155983151 983153983157983141 983141983148 983153983157983141 983152983154983151983152983151983154983139983145983151983150983137 983122983139983149983140983154 E983155983156983137983144983141983154983154983137983149983145983141983150983156983137 983141983155 983138983137983155983156983137983150983156983141 983154983141983139983145983141983150983156983141 983161 983141983155983156983265 983139983154983141983139983145983141983150983140983151 983140983141 983157983150983137 983149983137983150983141983154983137 983138983137983155983156983137983150983156983141 983154983265983152983145983140983137 983120983137983154983137 983155983145983156983157983137983139983145983151983150983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 214

983149983265983155 983139983151983149983152983148983141983146983137983155 983140983141 983156983154983137983138983137983146983151 983141 983145983150983158983141983155983156983145983143983137983139983145983283983150 983157983150983137 983158983141983162 983155983157983152983141983154983137983140983151 983141983148 983154983141983155983152983141983156983151 983145983150983145983139983145983137983148 983137 983148983137 983144983141983154983154983137983149983145983141983150983156983137 983148983151

983144983137983138983145983156983157983137983148 983141983155 983140983141983139983137983150983156983137983154983155983141 983152983151983154 983156983154983137983138983137983146983137983154 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983139983154983141983137983150983140983151 983161 983141983140983145983156983137983150983140983151

983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983150 983157983150983137 983141983158983145983140983141983150983156983141 983141983139983151983150983151983149983277983137 983140983141 983154983141983139983157983154983155983151983155 983161 983148983151 983153983157983141 983141983155 983149983265983155 983145983149983152983151983154983156983137983150983156983141 983139983151983150 983157983150 983139983151983150983156983154983151983148

983156983151983156983137983148 983155983151983138983154983141 983148983151983155 983152983154983151983139983141983140983145983149983145983141983150983156983151983155 983153983157983141 983141983150 983139983137983140983137 983149983151983149983141983150983156983151 983155983141 983158983137983150 983137 983137983152983148983145983139983137983154

11 983113983118983123983124983105983116983105983107983113983251983118 983109 983113983118983113983107983113983119 983108983109 983122 983129 983122983107983117983108983122

1

D983141983155983139983137983154983143983137983154 983141983148 983137983154983139983144983145983158983151 983140983141 983145983150983155983156983137983148983137983139983145983283983150 983151 983141983148 983139983283983140983145983143983151 983153983157983141 983139983151983154983154983141983155983152983151983150983140983137 983137983148 983155983145983155983156983141983149983137 983151983152983141983154983137983156983145983158983151 983140983141983148

983151983154983140983141983150983137983140983151983154 983141983150 983148983137 983125983122983116 983144983156983156983152983159983159983159983154983085983152983154983151983146983141983139983156983151983154983143 (983140983151983159983150983148983151983137983140 983122) 983152983151983154 983141983146983141983149983152983148983151 983140983141983155983140983141 983117983137983140983154983145983140

(983144983156983156983152983139983154983137983150983141983155983154983085983152983154983151983146983141983139983156983151983154983143) 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983145983150983155983156983137983148983137983154 983148983137983155 983139983151983150983156983154983145983138983157983139983145983151983150983141983155 983137983140983145983139983145983151983150983137983148983141983155

983138983137983155983156983137 983139983151983150 983141983148 983155983157983138983140983145983154983141983139983156983151983154983145983151 983138983137983155983141

2

983120983137983154983137 983145983150983155983156983137983148983137983154 983157983150 983152983137983153983157983141983156983141 983139983151983149983151 983152983157983141983140983141 983155983141983154 983122983139983149983140983154 983141983148 983152983154983151983143983154983137983149983137 983156983145983141983150983141 983145983150983156983141983143983154983137983140983151 983157983150 983143983141983155983156983151983154 983140983141

983152983137983153983157983141983156983141983155 H983137983161 983153983157983141

1

E983150983156983154983137983154 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155 983085983102 983113983150983155983156983137983148983137983154 983152983137983153983157983141983156983141983080983155983081983086983086983086

2

E983150 983148983137 983158983141983150983156983137983150983137 983153983157983141 983137983152983137983154983141983139983141 983141983148983141983143983145983154 983157983150 983154983141983152983151983155983145983156983151983154983145983151 (983151 983141983155983152983141983146983151) 983140983141983155983140983141 983141983148 983153983157983141 983140983141983155983139983137983154983143983137983154

983141983148 983152983137983153983157983141983156983141 C983157983137983150983156983151 983149983265983155 983139983141983154983139983137983150983151 983141983155983156983273 983149983141983146983151983154

3

E983148983141983143983145983154 983141983148 983150983151983149983138983154983141 983140983141983148 983152983137983153983157983141983156983141 983153983157983141 983155983141 983153983157983145983141983154983141 983145983150983155983156983137983148983137983154 983141983150 983141983155983156983141 983139983137983155983151 983122983139983149983140983154

E983150 983141983148 983139983137983155983151 983140983141 983141983155983156983141 983152983137983153983157983141983156983141 983155983141 983158983137983150 983137 983145983150983155983156983137983148983137983154 983149983157983139983144983151983155 983151983156983154983151983155 983155983157983138983152983137983153983157983141983156983141983155 (983140983141983152983141983150983140983141983150983139983145983137983155) 983153983157983141

983155983151983150 983150983141983139983141983155983137983154983145983151983155 983152983137983154983137 983153983157983141 983152983157983141983140983137983150 983142983157983150983139983145983151983150983137983154 983156983151983140983137983155 983148983137983155 983151983152983139983145983151983150983141983155 983140983141 983148983151983155 983149983141983150983290983155 983140983141983148 983141983150983156983151983154983150983151

983143983154983265983142983145983139983151

983125983150983137 983158983141983162 983153983157983141 983144983141983149983151983155 983145983150983155983156983137983148983137983140983151 983122 983137983152983137983154983141983139983141983154983265 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983155983157 983145983139983151983150983151 983139983151983154983154983141983155983152983151983150983140983145983141983150983156983141

983124983154983137983155 983137983138983154983145983154 983141983148 983152983154983151983143983154983137983149983137 983122 983139983151983149983145983141983150983162983137 983155983157 983141983146983141983139983157983139983145983283983150 983137983152983137983154983141983139983145983141983150983140983151 983157983150983137 983158983141983150983156983137983150983137 983155983145983149983145983148983137983154 983137 983148983137 983155983145983143983157983145983141983150983156983141

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 314

A983140983141983149983265983155 983140983141 983157983156983145983148983145983162983137983154 983122 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983145983154983141983139983156983137983149983141983150983156983141 983141983148 983139983283983140983145983143983151 983141983150 983148983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151 983144983137983161 983157983150983137

983142983151983154983149983137 983139983283983149983151983140983137 983140983141 983145983154 983141983158983137983148983157983137983150983140983151 991252983161 983143983157983137983154983140983137983150983140983151 983155983145 983155983141 983140983141983155983141983137991252 983141983148 983139983283983140983145983143983151 983140983141 983122 983153983157983141 983156983141983150983143983137983149983151983155 983141983155983139983154983145983156983151

B983137983155983156983137 983140983145983158983145983140983145983154 983148983137 983158983141983150983156983137983150983137 983152983154983145983150983139983145983152983137983148 983140983141 983122 983141983150 983140983151983155 983152983137983154983156983141983155 983141983150 983157983150983137 983141983155983156983137983154983265 983141983148 983139983283983140983145983143983151 983153983157983141 983158983137983149983151983155

983141983155983139983154983145983138983145983141983150983140983151 983140983141983155983140983141 983148983137 983153983157983141 983155983141983154983265 983141983150983158983145983137983140983151 983137 983148983137 983151983156983154983137 983152983137983154983137 983153983157983141 983155983141 983141983158983137983148983290983141 983120983137983154983137 983141983148983148983151 983144983137983161 983153983157983141 983144983137983139983141983154 983153983157983141 983148983137

983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155 983151983139983157983152983141 983157983150983137 983149983145983156983137983140 983161 983148983137 983158983141983150983156983137983150983137 983140983141 983141983140983145983156983137983154 983139983283983140983145983143983151 983148983137 983151983156983154983137 983116983137 983155983157983138983158983141983150983156983137983150983137 983152983137983154983137

983141983140983145983156983137983154 983139983283983140983145983143983151 983137983152983137983154983141983139983141 983137983148 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983105983154983139983144983145983158983151 983085983102 983118983157983141983158983151 983155983139983154983145983152983156983084

983155983145 983141983148 983139983283983140983145983143983151 983150983151 983141983155983156983265 983143983157983137983154983140983137983140983151 983141983150 983150983145983150983143983290983150 983137983154983139983144983145983158983151 983151

983105983154983139983144983145983158983151 983085983102 983105983138983154983145983154 983155983139983154983145983152983156983086983086983086

983155983145 983161983137 983148983151 983141983155983156983265

A983144983151983154983137 983152983137983154983137 983141983158983137983148983157983137983154 983157983150983137 983152983137983154983156983141 983140983141983148 983139983283983140983145983143983151 983138983137983155983156983137 983155983141983148983141983139983139983145983151983150983137983154983148983137 983161 983152983157983148983155983137983154 983107983156983154983148983083983122983084 983151 983149983141983150983151983155 983139983283983149983151983140983151

983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290 983109983140983145983156983137983154 983085983102 983107983151983154983154983141983154 983148983277983150983141983137 983151 983155983141983148983141983139983139983145983283983150983086 983120983137983154983137 983141983158983137983148983157983137983154 983156983151983140983151 983141983148 983139983283983140983145983143983151 983140983141983148 983137983154983139983144983145983158983151 983155983141

983152983157983141983140983141 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983109983140983145983156983137983154 983085983102 983109983146983141983139983157983156983137983154 983156983151983140983151

983151 983155983141983148983141983139983139983145983151983150983137983154983148983151 983156983151983140983151 983161 983157983156983145983148983145983162983137983154 983148983137 983142983151983154983149983137 983137983150983156983141983154983145983151983154

12 983105983129983125983108983105 983108983109 983122

983122 983140983145983155983152983151983150983141 983140983141 983157983150 983155983145983155983156983141983149983137 983140983141 983137983161983157983140983137 983153983157983141 983155983141 983152983157983141983140983141 983139983151983150983155983157983148983156983137983154 983140983141983155983140983141 983141983148 983149983141983150983290 983153983157983141 983137983152983137983154983141983139983141 983137983148 983145983150983145983139983145983137983154 983141983148

983152983154983151983143983154983137983149983137 (983151983152983139983145983283983150 H983141983148983152) 983151 983145983150983158983151983139983137983150983140983151 983148983137 983137983161983157983140983137 983141983150 983148983277983150983141983137

983116983137 983137983161983157983140983137 983140983141983155983140983141 983141983148 983149983141983150983290 983155983141 983141983155983156983154983157983139983156983157983154983137 983140983141 983148983137 983155983145983143983157983145983141983150983156983141 983149983137983150983141983154983137

Console A983161983157983140983137 983155983151983138983154983141 983141983148 983157983155983151 983140983141 983148983137983155 983156983141983139983148983137983155 983161 983155983157983155 983139983151983149983138983145983150983137983139983145983151983150983141983155 983141983150 983122

R language (standard) 983120983154983151983152983151983154983139983145983151983150983137 983137983161983157983140983137 983155983151983138983154983141 983142983157983150983139983145983151983150983141983155 983139983151983150983139983154983141983156983137983155

R language (html) A983154983154983137983150983139983137 983157983150 983141983150983156983151983154983150983151 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148

Manuals D983137 983137983139983139983141983155983151 983137983148 983149983137983150983157983137983148 983140983141 983154983141983142983141983154983150983139983145983137 983140983141 983122 983141983150 983142983151983154983149983137983156983151 983152983140983142

Apropos D983137 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983154983141983148983137983139983145983151983150983137983140983137983155 983139983151983150 983157983150983137 983140983137983140983137

About I983150983142983151983154983149983137 983140983141 983148983137 983158983141983154983155983145983283983150 983137983139983156983157983137983148 983140983141 983122

A983148983143983157983150983151983155 983141983146983141983149983152983148983151983155 983140983141 983137983161983157983140983137 983141983150 983148983277983150983141983137 983149983141983140983145983137983150983156983141 983139983151983149983137983150983140983151983155

gt help() 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983143983141983150983141983154983137983148 983155983151983138983154983141 983122

gt helpstart() A983154983154983137983150983139983137 983157983150 983149983137983150983157983137983148 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148 983157983156983145983148983145983162983137983150983140983151 983141983148

983150983137983158983141983143983137983140983151983154 983140983141983148 983155983145983155983156983141983149983137

gt help(log) 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983155983151983138983154983141 983148983137 983142983157983150983139983145983283983150 983148983151983143983137983154983145983156983149983151

gtapropos(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137983155 983142983157983150983139983145983151983150983141983155 983157 983151983138983146983141983156983151983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261 983141983150 983155983157 983150983151983149983138983154983141

gthelpsearch(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137 983137983161983157983140983137 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 414

2 983125983123983119 983107983119983117983119 983107983105983116983107983125983116983105983108983119983122983105 983107983113983109983118983124983245983110983113983107983105

983122 983152983157983141983140983141 983155983141983154 983157983156983145983148983145983162983137983140983151 983139983151983149983151 983157983150983137 983139983137983148983139983157983148983137983140983151983154983137 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151

983119983152983141983154983137983140983151983154983141983155 983123983145983143983150983145983142983145983139983137983140983151

983105 983154 983145 983156 983149 983273 983156 983145 983139 983151 983155

983122983141983155983156983151 983140983141 983157983150983137 983140983145983158983145983155983145983283983150

C983151983139983145983141983150983156983141 983141983150983156983141983154983151 983140983141 983148983137 983140983145983158983145983155983145983283983150

983117983157983148983156983145983152983148983145983139983137983139983145983283983150

+ 983123983157983149983137

- 983122983141983155983156983137

^ E983148983141983158983137983154 983137 983157983150983137 983152983151983156983141983150983139983145983137

D983145983158983145983155983145983283983150

983116 983283 983143 983145 983139 983151

983155

lt 983117983141983150983151983154 983153983157983141

lt= 983117983141983150983151983154 983151 983145983143983157983137983148 983153983157983141

gt 983117983137983161983151983154 983153983157983141

gt= 983117983137983161983151983154 983151 983145983143983157983137983148 983153983157983141

== I983143983157983137983148

= D983145983155983156983145983150983156983151

983110983157983150983139983145983283983150 983123983145983143983150983145983142983145983139983137983140983151

exp(x) E983160983152983151983150983141983150983139983145983137983148 983140983141 983160 (983141983160)

log(x) 983116983151983143983137983154983145983156983149983151 983150983141983152983141983154983145983137983150983151 983140983141 983160

log(xn) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 983150 983140983141 983160

log10(x) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 10 983140983141 983160

sqrt(x) 983122983137983277983162 983139983157983137983140983154983137983140983137 983140983141 983160

factorial(x) F983137983139983156983151983154983145983137983148 983140983141 983160 (983160)

floor(x) 983117983137983161983151983154 983158983137983148983151983154 983141983150983156983141983154983151 lt 983160

ceiling(x) 983117983141983150983151983154 983158983137983148983151983154 983141983150983156983141983154983151 gt 983160

trunc(x)

983126983137983148983151983154 983141983150983156983141983154983151 983149983265983155 983152983154983283983160983145983149983151 983137 983160 983141983150983156983154983141 983160 983161 0 C983151983145983150983139983145983140983141 983139983151983150

983142983148983151983151983154(983160) 983152983137983154983137 983158983137983148983151983154983141983155 983152983151983155983145983156983145983158983151983155 983161 983139983151983150 983139983141983145983148983145983150983143 (983160) 983152983137983154983137 983158983137983148983151983154983141983155

983150983141983143983137983156983145983158983151983155

round(x digits=0)

983122983141983140983151983150983140983141983137 983141983148 983158983137983148983151983154 983140983141 983160 983155983145983141983150983140983151 983140983145983143983145983156983155 983141983148 983150983290983149983141983154983151 983140983141 983140983141983139983145983149983137983148983141983155

983153983157983141 983155983141 983152983141983154983149983145983156983141983150

signif(x digits=6) D983141983158983157983141983148983158983141 983141983148 983158983137983148983151983154 983140983141 983160 983139983151983150 6 983140983277983143983145983156983151983155 983141983150 983150983151983156983137983139983145983283983150 983139983145983141983150983156983277983142983145983139983137

cos(x) C983151983155983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

sin(x) 983123983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

tan(x) 983124983137983150983143983141983150983156983141 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

acos(x)asin(x)atan(x) F983157983150983139983145983151983150983141983155 983156983154983145983143983151983150983151983149983273983156983154983145983139983137983155 983145983150983158983141983154983155983137983155

abs(x) 983126983137983148983151983154 983137983138983155983151983148983157983156983151 983140983141 983160

983109983146983141983154983139983145983139983145983151 1 983122983141983137983148983145983162983137983154 983137983148983143983157983150983151983155 983139983265983148983139983157983148983151983155 983137983154983145983156983149983273983156983145983139983151983155 983141983150 983122

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 514

3 983126983105983122983113983105983106983116983109983123 983129 983126983109983107983124983119983122983109983123

E983150 983122 983137 983140983145983142983141983154983141983150983139983145983137 983140983141 983151983156983154983151983155 983148983141983150983143983157983137983146983141983155 983150983151 983141983155 983150983141983139983141983155983137983154983145983151 983140983141983139983148983137983154983137983154 983137 983152983154983145983151983154983145 983141983148 983150983151983149983138983154983141 983161 983141983148 983156983145983152983151 983140983141 983148983137983155

983158983137983154983145983137983138983148983141983155 983120983137983154983137 983137983155983145983143983150983137983154983148983141 983157983150 983158983137983148983151983154 983155983141 983157983155983137 983141983148 983155983145983143983150983151 lt- 983116983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155 983141983149983152983145983141983162983137983150 983152983151983154

983157983150983137 983148983141983156983154983137 983153983157983141 983152983157983141983140983141 983145983154 983155983141983143983157983145983140983137 983140983141 983149983265983155 983148983141983156983154983137983155 983140983277983143983145983156983151983155 983151 983148983151983155 983139983137983154983137983139983156983141983154983141983155 983152983157983150983156983151 () 983151 983148983277983150983141983137 983140983141

983155983157983138983154983137983161983137983140983151 ( _ )

983116983151983155 983140983145983155983156983145983150983156983151983155 983156983145983152983151983155 983140983141 983158983137983148983151983154983141983155 983153983157983141 983122 983137983155983145983143983150983137 983137 983148983137983155 983158983137983154983145983137983138983148983141983155 983155983151983150

983117983151983140983151 983124983145983152983151logic 983158983137983148983151983154983141983155 983148983283983143983145983139983151983155 TRUE (T) 983151 FALSE (F) numeric 983150983290983149983141983154983151983155 983154983141983137983148983141983155integer 983158983137983148983151983154983141983155 983141983150983156983141983154983151983155double 983158983137983148983151983154983141983155 983154983141983137983148983141983155 983139983151983150 983140983151983138983148983141 983152983154983141983139983145983155983145983283983150complex 983150983290983149983141983154983151983155 983139983151983149983152983148983141983146983151983155character 983139983137983154983137983139983156983141983154983141983155 (983148983141983156983154983137983155 983161983151 983150983290983149983141983154983151983155)

NA 983140983137983156983151 983150983151 983140983145983155983152983151983150983145983138983148983141 (983150983151983156 983137983158983137983145983148983137983138983148983141) NaN 983150983151 983141983155 983157983150 983150983290983149983141983154983151 (983150983151983156 983137 983150983157983149983138983141983154 )

E983148 983156983145983152983151 983138983265983155983145983139983151 983140983141 983151983138983146983141983156983151983155 983140983141 983122 983155983151983150 983148983151983155 983158983141983139983156983151983154983141983155 983123983141 983156983154983137983156983137 983140983141 983141983155983156983154983157983139983156983157983154983137983155 983137983156983283983149983145983139983137983155 983152983157983141983155983156983151 983153983157983141 983156983151983140983151983155

983155983157983155 983141983148983141983149983141983150983156983151983155 983140983141983148 983158983141983139983156983151983154 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983151983149983152983148983141983146983151 983148983283983143983145983139983151 983151 983140983141 983139983137983154983265983139983156983141983154)

E983146983141983149983152983148983151983155 983140983141 983139983154983141983137983139983145983283983150 983140983141 983158983141983139983156983151983154983141983155 983155983151983150

gt c(12345)

[1] 1 2 3 4 5

gt c(TFTT)

[1] TRUE FALSE TRUE TRUE

gt xlt-c(BadajozCaacuteceres)

gt x

[1] Badajoz Caacuteceres

gt c(123cuatro)-gtxgt x

[1] 1 2 3 cuatro

gt c(123F)

[1] 1 2 3 0

983116983137 983142983157983150983139983145983283983150 c() 983152983141983154983149983145983156983141 983139983151983150983139983137983156983141983150983137983154 983158983141983139983156983151983154983141983155 983120983151983154 983141983146983141983149983152983148983151

gt xlt-c(135)

gt ylt-c(246)

gt c(xy)

[1] 1 3 5 2 4 6

983120983151983140983141983149983151983155 983141983160983156983154983137983141983154 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983158983141983139983156983151983154 983140983141 983141983155983156983141 983149983151983140983151

gt xlt-c(12345678910)x[3]x[-3]x[c(157)]

[1] 3

[1] 1 2 4 5 6 7 8 9 10

[1] 1 5 7

983119 983141983158983137983148983157983137983154 983141983160983152983154983141983155983145983151983150983141983155 983152983137983154983137 983141983148 983158983141983139983156983151983154

gt xgt8

[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 2: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 214

983149983265983155 983139983151983149983152983148983141983146983137983155 983140983141 983156983154983137983138983137983146983151 983141 983145983150983158983141983155983156983145983143983137983139983145983283983150 983157983150983137 983158983141983162 983155983157983152983141983154983137983140983151 983141983148 983154983141983155983152983141983156983151 983145983150983145983139983145983137983148 983137 983148983137 983144983141983154983154983137983149983145983141983150983156983137 983148983151

983144983137983138983145983156983157983137983148 983141983155 983140983141983139983137983150983156983137983154983155983141 983152983151983154 983156983154983137983138983137983146983137983154 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983139983154983141983137983150983140983151 983161 983141983140983145983156983137983150983140983151

983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983150 983157983150983137 983141983158983145983140983141983150983156983141 983141983139983151983150983151983149983277983137 983140983141 983154983141983139983157983154983155983151983155 983161 983148983151 983153983157983141 983141983155 983149983265983155 983145983149983152983151983154983156983137983150983156983141 983139983151983150 983157983150 983139983151983150983156983154983151983148

983156983151983156983137983148 983155983151983138983154983141 983148983151983155 983152983154983151983139983141983140983145983149983145983141983150983156983151983155 983153983157983141 983141983150 983139983137983140983137 983149983151983149983141983150983156983151 983155983141 983158983137983150 983137 983137983152983148983145983139983137983154

11 983113983118983123983124983105983116983105983107983113983251983118 983109 983113983118983113983107983113983119 983108983109 983122 983129 983122983107983117983108983122

1

D983141983155983139983137983154983143983137983154 983141983148 983137983154983139983144983145983158983151 983140983141 983145983150983155983156983137983148983137983139983145983283983150 983151 983141983148 983139983283983140983145983143983151 983153983157983141 983139983151983154983154983141983155983152983151983150983140983137 983137983148 983155983145983155983156983141983149983137 983151983152983141983154983137983156983145983158983151 983140983141983148

983151983154983140983141983150983137983140983151983154 983141983150 983148983137 983125983122983116 983144983156983156983152983159983159983159983154983085983152983154983151983146983141983139983156983151983154983143 (983140983151983159983150983148983151983137983140 983122) 983152983151983154 983141983146983141983149983152983148983151 983140983141983155983140983141 983117983137983140983154983145983140

(983144983156983156983152983139983154983137983150983141983155983154983085983152983154983151983146983141983139983156983151983154983143) 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983145983150983155983156983137983148983137983154 983148983137983155 983139983151983150983156983154983145983138983157983139983145983151983150983141983155 983137983140983145983139983145983151983150983137983148983141983155

983138983137983155983156983137 983139983151983150 983141983148 983155983157983138983140983145983154983141983139983156983151983154983145983151 983138983137983155983141

2

983120983137983154983137 983145983150983155983156983137983148983137983154 983157983150 983152983137983153983157983141983156983141 983139983151983149983151 983152983157983141983140983141 983155983141983154 983122983139983149983140983154 983141983148 983152983154983151983143983154983137983149983137 983156983145983141983150983141 983145983150983156983141983143983154983137983140983151 983157983150 983143983141983155983156983151983154 983140983141

983152983137983153983157983141983156983141983155 H983137983161 983153983157983141

1

E983150983156983154983137983154 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155 983085983102 983113983150983155983156983137983148983137983154 983152983137983153983157983141983156983141983080983155983081983086983086983086

2

E983150 983148983137 983158983141983150983156983137983150983137 983153983157983141 983137983152983137983154983141983139983141 983141983148983141983143983145983154 983157983150 983154983141983152983151983155983145983156983151983154983145983151 (983151 983141983155983152983141983146983151) 983140983141983155983140983141 983141983148 983153983157983141 983140983141983155983139983137983154983143983137983154

983141983148 983152983137983153983157983141983156983141 C983157983137983150983156983151 983149983265983155 983139983141983154983139983137983150983151 983141983155983156983273 983149983141983146983151983154

3

E983148983141983143983145983154 983141983148 983150983151983149983138983154983141 983140983141983148 983152983137983153983157983141983156983141 983153983157983141 983155983141 983153983157983145983141983154983141 983145983150983155983156983137983148983137983154 983141983150 983141983155983156983141 983139983137983155983151 983122983139983149983140983154

E983150 983141983148 983139983137983155983151 983140983141 983141983155983156983141 983152983137983153983157983141983156983141 983155983141 983158983137983150 983137 983145983150983155983156983137983148983137983154 983149983157983139983144983151983155 983151983156983154983151983155 983155983157983138983152983137983153983157983141983156983141983155 (983140983141983152983141983150983140983141983150983139983145983137983155) 983153983157983141

983155983151983150 983150983141983139983141983155983137983154983145983151983155 983152983137983154983137 983153983157983141 983152983157983141983140983137983150 983142983157983150983139983145983151983150983137983154 983156983151983140983137983155 983148983137983155 983151983152983139983145983151983150983141983155 983140983141 983148983151983155 983149983141983150983290983155 983140983141983148 983141983150983156983151983154983150983151

983143983154983265983142983145983139983151

983125983150983137 983158983141983162 983153983157983141 983144983141983149983151983155 983145983150983155983156983137983148983137983140983151 983122 983137983152983137983154983141983139983141983154983265 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983155983157 983145983139983151983150983151 983139983151983154983154983141983155983152983151983150983140983145983141983150983156983141

983124983154983137983155 983137983138983154983145983154 983141983148 983152983154983151983143983154983137983149983137 983122 983139983151983149983145983141983150983162983137 983155983157 983141983146983141983139983157983139983145983283983150 983137983152983137983154983141983139983145983141983150983140983151 983157983150983137 983158983141983150983156983137983150983137 983155983145983149983145983148983137983154 983137 983148983137 983155983145983143983157983145983141983150983156983141

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 314

A983140983141983149983265983155 983140983141 983157983156983145983148983145983162983137983154 983122 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983145983154983141983139983156983137983149983141983150983156983141 983141983148 983139983283983140983145983143983151 983141983150 983148983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151 983144983137983161 983157983150983137

983142983151983154983149983137 983139983283983149983151983140983137 983140983141 983145983154 983141983158983137983148983157983137983150983140983151 991252983161 983143983157983137983154983140983137983150983140983151 983155983145 983155983141 983140983141983155983141983137991252 983141983148 983139983283983140983145983143983151 983140983141 983122 983153983157983141 983156983141983150983143983137983149983151983155 983141983155983139983154983145983156983151

B983137983155983156983137 983140983145983158983145983140983145983154 983148983137 983158983141983150983156983137983150983137 983152983154983145983150983139983145983152983137983148 983140983141 983122 983141983150 983140983151983155 983152983137983154983156983141983155 983141983150 983157983150983137 983141983155983156983137983154983265 983141983148 983139983283983140983145983143983151 983153983157983141 983158983137983149983151983155

983141983155983139983154983145983138983145983141983150983140983151 983140983141983155983140983141 983148983137 983153983157983141 983155983141983154983265 983141983150983158983145983137983140983151 983137 983148983137 983151983156983154983137 983152983137983154983137 983153983157983141 983155983141 983141983158983137983148983290983141 983120983137983154983137 983141983148983148983151 983144983137983161 983153983157983141 983144983137983139983141983154 983153983157983141 983148983137

983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155 983151983139983157983152983141 983157983150983137 983149983145983156983137983140 983161 983148983137 983158983141983150983156983137983150983137 983140983141 983141983140983145983156983137983154 983139983283983140983145983143983151 983148983137 983151983156983154983137 983116983137 983155983157983138983158983141983150983156983137983150983137 983152983137983154983137

983141983140983145983156983137983154 983139983283983140983145983143983151 983137983152983137983154983141983139983141 983137983148 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983105983154983139983144983145983158983151 983085983102 983118983157983141983158983151 983155983139983154983145983152983156983084

983155983145 983141983148 983139983283983140983145983143983151 983150983151 983141983155983156983265 983143983157983137983154983140983137983140983151 983141983150 983150983145983150983143983290983150 983137983154983139983144983145983158983151 983151

983105983154983139983144983145983158983151 983085983102 983105983138983154983145983154 983155983139983154983145983152983156983086983086983086

983155983145 983161983137 983148983151 983141983155983156983265

A983144983151983154983137 983152983137983154983137 983141983158983137983148983157983137983154 983157983150983137 983152983137983154983156983141 983140983141983148 983139983283983140983145983143983151 983138983137983155983156983137 983155983141983148983141983139983139983145983151983150983137983154983148983137 983161 983152983157983148983155983137983154 983107983156983154983148983083983122983084 983151 983149983141983150983151983155 983139983283983149983151983140983151

983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290 983109983140983145983156983137983154 983085983102 983107983151983154983154983141983154 983148983277983150983141983137 983151 983155983141983148983141983139983139983145983283983150983086 983120983137983154983137 983141983158983137983148983157983137983154 983156983151983140983151 983141983148 983139983283983140983145983143983151 983140983141983148 983137983154983139983144983145983158983151 983155983141

983152983157983141983140983141 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983109983140983145983156983137983154 983085983102 983109983146983141983139983157983156983137983154 983156983151983140983151

983151 983155983141983148983141983139983139983145983151983150983137983154983148983151 983156983151983140983151 983161 983157983156983145983148983145983162983137983154 983148983137 983142983151983154983149983137 983137983150983156983141983154983145983151983154

12 983105983129983125983108983105 983108983109 983122

983122 983140983145983155983152983151983150983141 983140983141 983157983150 983155983145983155983156983141983149983137 983140983141 983137983161983157983140983137 983153983157983141 983155983141 983152983157983141983140983141 983139983151983150983155983157983148983156983137983154 983140983141983155983140983141 983141983148 983149983141983150983290 983153983157983141 983137983152983137983154983141983139983141 983137983148 983145983150983145983139983145983137983154 983141983148

983152983154983151983143983154983137983149983137 (983151983152983139983145983283983150 H983141983148983152) 983151 983145983150983158983151983139983137983150983140983151 983148983137 983137983161983157983140983137 983141983150 983148983277983150983141983137

983116983137 983137983161983157983140983137 983140983141983155983140983141 983141983148 983149983141983150983290 983155983141 983141983155983156983154983157983139983156983157983154983137 983140983141 983148983137 983155983145983143983157983145983141983150983156983141 983149983137983150983141983154983137

Console A983161983157983140983137 983155983151983138983154983141 983141983148 983157983155983151 983140983141 983148983137983155 983156983141983139983148983137983155 983161 983155983157983155 983139983151983149983138983145983150983137983139983145983151983150983141983155 983141983150 983122

R language (standard) 983120983154983151983152983151983154983139983145983151983150983137 983137983161983157983140983137 983155983151983138983154983141 983142983157983150983139983145983151983150983141983155 983139983151983150983139983154983141983156983137983155

R language (html) A983154983154983137983150983139983137 983157983150 983141983150983156983151983154983150983151 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148

Manuals D983137 983137983139983139983141983155983151 983137983148 983149983137983150983157983137983148 983140983141 983154983141983142983141983154983150983139983145983137 983140983141 983122 983141983150 983142983151983154983149983137983156983151 983152983140983142

Apropos D983137 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983154983141983148983137983139983145983151983150983137983140983137983155 983139983151983150 983157983150983137 983140983137983140983137

About I983150983142983151983154983149983137 983140983141 983148983137 983158983141983154983155983145983283983150 983137983139983156983157983137983148 983140983141 983122

A983148983143983157983150983151983155 983141983146983141983149983152983148983151983155 983140983141 983137983161983157983140983137 983141983150 983148983277983150983141983137 983149983141983140983145983137983150983156983141 983139983151983149983137983150983140983151983155

gt help() 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983143983141983150983141983154983137983148 983155983151983138983154983141 983122

gt helpstart() A983154983154983137983150983139983137 983157983150 983149983137983150983157983137983148 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148 983157983156983145983148983145983162983137983150983140983151 983141983148

983150983137983158983141983143983137983140983151983154 983140983141983148 983155983145983155983156983141983149983137

gt help(log) 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983155983151983138983154983141 983148983137 983142983157983150983139983145983283983150 983148983151983143983137983154983145983156983149983151

gtapropos(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137983155 983142983157983150983139983145983151983150983141983155 983157 983151983138983146983141983156983151983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261 983141983150 983155983157 983150983151983149983138983154983141

gthelpsearch(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137 983137983161983157983140983137 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 414

2 983125983123983119 983107983119983117983119 983107983105983116983107983125983116983105983108983119983122983105 983107983113983109983118983124983245983110983113983107983105

983122 983152983157983141983140983141 983155983141983154 983157983156983145983148983145983162983137983140983151 983139983151983149983151 983157983150983137 983139983137983148983139983157983148983137983140983151983154983137 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151

983119983152983141983154983137983140983151983154983141983155 983123983145983143983150983145983142983145983139983137983140983151

983105 983154 983145 983156 983149 983273 983156 983145 983139 983151 983155

983122983141983155983156983151 983140983141 983157983150983137 983140983145983158983145983155983145983283983150

C983151983139983145983141983150983156983141 983141983150983156983141983154983151 983140983141 983148983137 983140983145983158983145983155983145983283983150

983117983157983148983156983145983152983148983145983139983137983139983145983283983150

+ 983123983157983149983137

- 983122983141983155983156983137

^ E983148983141983158983137983154 983137 983157983150983137 983152983151983156983141983150983139983145983137

D983145983158983145983155983145983283983150

983116 983283 983143 983145 983139 983151

983155

lt 983117983141983150983151983154 983153983157983141

lt= 983117983141983150983151983154 983151 983145983143983157983137983148 983153983157983141

gt 983117983137983161983151983154 983153983157983141

gt= 983117983137983161983151983154 983151 983145983143983157983137983148 983153983157983141

== I983143983157983137983148

= D983145983155983156983145983150983156983151

983110983157983150983139983145983283983150 983123983145983143983150983145983142983145983139983137983140983151

exp(x) E983160983152983151983150983141983150983139983145983137983148 983140983141 983160 (983141983160)

log(x) 983116983151983143983137983154983145983156983149983151 983150983141983152983141983154983145983137983150983151 983140983141 983160

log(xn) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 983150 983140983141 983160

log10(x) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 10 983140983141 983160

sqrt(x) 983122983137983277983162 983139983157983137983140983154983137983140983137 983140983141 983160

factorial(x) F983137983139983156983151983154983145983137983148 983140983141 983160 (983160)

floor(x) 983117983137983161983151983154 983158983137983148983151983154 983141983150983156983141983154983151 lt 983160

ceiling(x) 983117983141983150983151983154 983158983137983148983151983154 983141983150983156983141983154983151 gt 983160

trunc(x)

983126983137983148983151983154 983141983150983156983141983154983151 983149983265983155 983152983154983283983160983145983149983151 983137 983160 983141983150983156983154983141 983160 983161 0 C983151983145983150983139983145983140983141 983139983151983150

983142983148983151983151983154(983160) 983152983137983154983137 983158983137983148983151983154983141983155 983152983151983155983145983156983145983158983151983155 983161 983139983151983150 983139983141983145983148983145983150983143 (983160) 983152983137983154983137 983158983137983148983151983154983141983155

983150983141983143983137983156983145983158983151983155

round(x digits=0)

983122983141983140983151983150983140983141983137 983141983148 983158983137983148983151983154 983140983141 983160 983155983145983141983150983140983151 983140983145983143983145983156983155 983141983148 983150983290983149983141983154983151 983140983141 983140983141983139983145983149983137983148983141983155

983153983157983141 983155983141 983152983141983154983149983145983156983141983150

signif(x digits=6) D983141983158983157983141983148983158983141 983141983148 983158983137983148983151983154 983140983141 983160 983139983151983150 6 983140983277983143983145983156983151983155 983141983150 983150983151983156983137983139983145983283983150 983139983145983141983150983156983277983142983145983139983137

cos(x) C983151983155983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

sin(x) 983123983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

tan(x) 983124983137983150983143983141983150983156983141 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

acos(x)asin(x)atan(x) F983157983150983139983145983151983150983141983155 983156983154983145983143983151983150983151983149983273983156983154983145983139983137983155 983145983150983158983141983154983155983137983155

abs(x) 983126983137983148983151983154 983137983138983155983151983148983157983156983151 983140983141 983160

983109983146983141983154983139983145983139983145983151 1 983122983141983137983148983145983162983137983154 983137983148983143983157983150983151983155 983139983265983148983139983157983148983151983155 983137983154983145983156983149983273983156983145983139983151983155 983141983150 983122

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 514

3 983126983105983122983113983105983106983116983109983123 983129 983126983109983107983124983119983122983109983123

E983150 983122 983137 983140983145983142983141983154983141983150983139983145983137 983140983141 983151983156983154983151983155 983148983141983150983143983157983137983146983141983155 983150983151 983141983155 983150983141983139983141983155983137983154983145983151 983140983141983139983148983137983154983137983154 983137 983152983154983145983151983154983145 983141983148 983150983151983149983138983154983141 983161 983141983148 983156983145983152983151 983140983141 983148983137983155

983158983137983154983145983137983138983148983141983155 983120983137983154983137 983137983155983145983143983150983137983154983148983141 983157983150 983158983137983148983151983154 983155983141 983157983155983137 983141983148 983155983145983143983150983151 lt- 983116983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155 983141983149983152983145983141983162983137983150 983152983151983154

983157983150983137 983148983141983156983154983137 983153983157983141 983152983157983141983140983141 983145983154 983155983141983143983157983145983140983137 983140983141 983149983265983155 983148983141983156983154983137983155 983140983277983143983145983156983151983155 983151 983148983151983155 983139983137983154983137983139983156983141983154983141983155 983152983157983150983156983151 () 983151 983148983277983150983141983137 983140983141

983155983157983138983154983137983161983137983140983151 ( _ )

983116983151983155 983140983145983155983156983145983150983156983151983155 983156983145983152983151983155 983140983141 983158983137983148983151983154983141983155 983153983157983141 983122 983137983155983145983143983150983137 983137 983148983137983155 983158983137983154983145983137983138983148983141983155 983155983151983150

983117983151983140983151 983124983145983152983151logic 983158983137983148983151983154983141983155 983148983283983143983145983139983151983155 TRUE (T) 983151 FALSE (F) numeric 983150983290983149983141983154983151983155 983154983141983137983148983141983155integer 983158983137983148983151983154983141983155 983141983150983156983141983154983151983155double 983158983137983148983151983154983141983155 983154983141983137983148983141983155 983139983151983150 983140983151983138983148983141 983152983154983141983139983145983155983145983283983150complex 983150983290983149983141983154983151983155 983139983151983149983152983148983141983146983151983155character 983139983137983154983137983139983156983141983154983141983155 (983148983141983156983154983137983155 983161983151 983150983290983149983141983154983151983155)

NA 983140983137983156983151 983150983151 983140983145983155983152983151983150983145983138983148983141 (983150983151983156 983137983158983137983145983148983137983138983148983141) NaN 983150983151 983141983155 983157983150 983150983290983149983141983154983151 (983150983151983156 983137 983150983157983149983138983141983154 )

E983148 983156983145983152983151 983138983265983155983145983139983151 983140983141 983151983138983146983141983156983151983155 983140983141 983122 983155983151983150 983148983151983155 983158983141983139983156983151983154983141983155 983123983141 983156983154983137983156983137 983140983141 983141983155983156983154983157983139983156983157983154983137983155 983137983156983283983149983145983139983137983155 983152983157983141983155983156983151 983153983157983141 983156983151983140983151983155

983155983157983155 983141983148983141983149983141983150983156983151983155 983140983141983148 983158983141983139983156983151983154 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983151983149983152983148983141983146983151 983148983283983143983145983139983151 983151 983140983141 983139983137983154983265983139983156983141983154)

E983146983141983149983152983148983151983155 983140983141 983139983154983141983137983139983145983283983150 983140983141 983158983141983139983156983151983154983141983155 983155983151983150

gt c(12345)

[1] 1 2 3 4 5

gt c(TFTT)

[1] TRUE FALSE TRUE TRUE

gt xlt-c(BadajozCaacuteceres)

gt x

[1] Badajoz Caacuteceres

gt c(123cuatro)-gtxgt x

[1] 1 2 3 cuatro

gt c(123F)

[1] 1 2 3 0

983116983137 983142983157983150983139983145983283983150 c() 983152983141983154983149983145983156983141 983139983151983150983139983137983156983141983150983137983154 983158983141983139983156983151983154983141983155 983120983151983154 983141983146983141983149983152983148983151

gt xlt-c(135)

gt ylt-c(246)

gt c(xy)

[1] 1 3 5 2 4 6

983120983151983140983141983149983151983155 983141983160983156983154983137983141983154 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983158983141983139983156983151983154 983140983141 983141983155983156983141 983149983151983140983151

gt xlt-c(12345678910)x[3]x[-3]x[c(157)]

[1] 3

[1] 1 2 4 5 6 7 8 9 10

[1] 1 5 7

983119 983141983158983137983148983157983137983154 983141983160983152983154983141983155983145983151983150983141983155 983152983137983154983137 983141983148 983158983141983139983156983151983154

gt xgt8

[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 3: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 314

A983140983141983149983265983155 983140983141 983157983156983145983148983145983162983137983154 983122 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983145983154983141983139983156983137983149983141983150983156983141 983141983148 983139983283983140983145983143983151 983141983150 983148983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151 983144983137983161 983157983150983137

983142983151983154983149983137 983139983283983149983151983140983137 983140983141 983145983154 983141983158983137983148983157983137983150983140983151 991252983161 983143983157983137983154983140983137983150983140983151 983155983145 983155983141 983140983141983155983141983137991252 983141983148 983139983283983140983145983143983151 983140983141 983122 983153983157983141 983156983141983150983143983137983149983151983155 983141983155983139983154983145983156983151

B983137983155983156983137 983140983145983158983145983140983145983154 983148983137 983158983141983150983156983137983150983137 983152983154983145983150983139983145983152983137983148 983140983141 983122 983141983150 983140983151983155 983152983137983154983156983141983155 983141983150 983157983150983137 983141983155983156983137983154983265 983141983148 983139983283983140983145983143983151 983153983157983141 983158983137983149983151983155

983141983155983139983154983145983138983145983141983150983140983151 983140983141983155983140983141 983148983137 983153983157983141 983155983141983154983265 983141983150983158983145983137983140983151 983137 983148983137 983151983156983154983137 983152983137983154983137 983153983157983141 983155983141 983141983158983137983148983290983141 983120983137983154983137 983141983148983148983151 983144983137983161 983153983157983141 983144983137983139983141983154 983153983157983141 983148983137

983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155 983151983139983157983152983141 983157983150983137 983149983145983156983137983140 983161 983148983137 983158983141983150983156983137983150983137 983140983141 983141983140983145983156983137983154 983139983283983140983145983143983151 983148983137 983151983156983154983137 983116983137 983155983157983138983158983141983150983156983137983150983137 983152983137983154983137

983141983140983145983156983137983154 983139983283983140983145983143983151 983137983152983137983154983141983139983141 983137983148 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983105983154983139983144983145983158983151 983085983102 983118983157983141983158983151 983155983139983154983145983152983156983084

983155983145 983141983148 983139983283983140983145983143983151 983150983151 983141983155983156983265 983143983157983137983154983140983137983140983151 983141983150 983150983145983150983143983290983150 983137983154983139983144983145983158983151 983151

983105983154983139983144983145983158983151 983085983102 983105983138983154983145983154 983155983139983154983145983152983156983086983086983086

983155983145 983161983137 983148983151 983141983155983156983265

A983144983151983154983137 983152983137983154983137 983141983158983137983148983157983137983154 983157983150983137 983152983137983154983156983141 983140983141983148 983139983283983140983145983143983151 983138983137983155983156983137 983155983141983148983141983139983139983145983151983150983137983154983148983137 983161 983152983157983148983155983137983154 983107983156983154983148983083983122983084 983151 983149983141983150983151983155 983139983283983149983151983140983151

983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290 983109983140983145983156983137983154 983085983102 983107983151983154983154983141983154 983148983277983150983141983137 983151 983155983141983148983141983139983139983145983283983150983086 983120983137983154983137 983141983158983137983148983157983137983154 983156983151983140983151 983141983148 983139983283983140983145983143983151 983140983141983148 983137983154983139983144983145983158983151 983155983141

983152983157983141983140983141 983141983150983156983154983137983154 983141983150 983141983148 983149983141983150983290

983109983140983145983156983137983154 983085983102 983109983146983141983139983157983156983137983154 983156983151983140983151

983151 983155983141983148983141983139983139983145983151983150983137983154983148983151 983156983151983140983151 983161 983157983156983145983148983145983162983137983154 983148983137 983142983151983154983149983137 983137983150983156983141983154983145983151983154

12 983105983129983125983108983105 983108983109 983122

983122 983140983145983155983152983151983150983141 983140983141 983157983150 983155983145983155983156983141983149983137 983140983141 983137983161983157983140983137 983153983157983141 983155983141 983152983157983141983140983141 983139983151983150983155983157983148983156983137983154 983140983141983155983140983141 983141983148 983149983141983150983290 983153983157983141 983137983152983137983154983141983139983141 983137983148 983145983150983145983139983145983137983154 983141983148

983152983154983151983143983154983137983149983137 (983151983152983139983145983283983150 H983141983148983152) 983151 983145983150983158983151983139983137983150983140983151 983148983137 983137983161983157983140983137 983141983150 983148983277983150983141983137

983116983137 983137983161983157983140983137 983140983141983155983140983141 983141983148 983149983141983150983290 983155983141 983141983155983156983154983157983139983156983157983154983137 983140983141 983148983137 983155983145983143983157983145983141983150983156983141 983149983137983150983141983154983137

Console A983161983157983140983137 983155983151983138983154983141 983141983148 983157983155983151 983140983141 983148983137983155 983156983141983139983148983137983155 983161 983155983157983155 983139983151983149983138983145983150983137983139983145983151983150983141983155 983141983150 983122

R language (standard) 983120983154983151983152983151983154983139983145983151983150983137 983137983161983157983140983137 983155983151983138983154983141 983142983157983150983139983145983151983150983141983155 983139983151983150983139983154983141983156983137983155

R language (html) A983154983154983137983150983139983137 983157983150 983141983150983156983151983154983150983151 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148

Manuals D983137 983137983139983139983141983155983151 983137983148 983149983137983150983157983137983148 983140983141 983154983141983142983141983154983150983139983145983137 983140983141 983122 983141983150 983142983151983154983149983137983156983151 983152983140983142

Apropos D983137 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983154983141983148983137983139983145983151983150983137983140983137983155 983139983151983150 983157983150983137 983140983137983140983137

About I983150983142983151983154983149983137 983140983141 983148983137 983158983141983154983155983145983283983150 983137983139983156983157983137983148 983140983141 983122

A983148983143983157983150983151983155 983141983146983141983149983152983148983151983155 983140983141 983137983161983157983140983137 983141983150 983148983277983150983141983137 983149983141983140983145983137983150983156983141 983139983151983149983137983150983140983151983155

gt help() 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983143983141983150983141983154983137983148 983155983151983138983154983141 983122

gt helpstart() A983154983154983137983150983139983137 983157983150 983149983137983150983157983137983148 983140983141 983137983161983157983140983137 983139983151983149983152983148983141983156983151 983141983150 983142983151983154983149983137983156983151 983144983156983149983148 983157983156983145983148983145983162983137983150983140983151 983141983148

983150983137983158983141983143983137983140983151983154 983140983141983148 983155983145983155983156983141983149983137

gt help(log) 983117983157983141983155983156983154983137 983157983150983137 983158983141983150983156983137983150983137 983140983141 983137983161983157983140983137 983155983151983138983154983141 983148983137 983142983157983150983139983145983283983150 983148983151983143983137983154983145983156983149983151

gtapropos(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137983155 983142983157983150983139983145983151983150983141983155 983157 983151983138983146983141983156983151983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261 983141983150 983155983157 983150983151983149983138983154983141

gthelpsearch(ldquoplotrdquo) 983117983157983141983155983156983154983137 983148983137 983137983161983157983140983137 983155983151983138983154983141 983148983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983145983150983139983148983157983161983141983150 983148983137 983139983137983140983141983150983137 991260983152983148983151983156991261

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 414

2 983125983123983119 983107983119983117983119 983107983105983116983107983125983116983105983108983119983122983105 983107983113983109983118983124983245983110983113983107983105

983122 983152983157983141983140983141 983155983141983154 983157983156983145983148983145983162983137983140983151 983139983151983149983151 983157983150983137 983139983137983148983139983157983148983137983140983151983154983137 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151

983119983152983141983154983137983140983151983154983141983155 983123983145983143983150983145983142983145983139983137983140983151

983105 983154 983145 983156 983149 983273 983156 983145 983139 983151 983155

983122983141983155983156983151 983140983141 983157983150983137 983140983145983158983145983155983145983283983150

C983151983139983145983141983150983156983141 983141983150983156983141983154983151 983140983141 983148983137 983140983145983158983145983155983145983283983150

983117983157983148983156983145983152983148983145983139983137983139983145983283983150

+ 983123983157983149983137

- 983122983141983155983156983137

^ E983148983141983158983137983154 983137 983157983150983137 983152983151983156983141983150983139983145983137

D983145983158983145983155983145983283983150

983116 983283 983143 983145 983139 983151

983155

lt 983117983141983150983151983154 983153983157983141

lt= 983117983141983150983151983154 983151 983145983143983157983137983148 983153983157983141

gt 983117983137983161983151983154 983153983157983141

gt= 983117983137983161983151983154 983151 983145983143983157983137983148 983153983157983141

== I983143983157983137983148

= D983145983155983156983145983150983156983151

983110983157983150983139983145983283983150 983123983145983143983150983145983142983145983139983137983140983151

exp(x) E983160983152983151983150983141983150983139983145983137983148 983140983141 983160 (983141983160)

log(x) 983116983151983143983137983154983145983156983149983151 983150983141983152983141983154983145983137983150983151 983140983141 983160

log(xn) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 983150 983140983141 983160

log10(x) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 10 983140983141 983160

sqrt(x) 983122983137983277983162 983139983157983137983140983154983137983140983137 983140983141 983160

factorial(x) F983137983139983156983151983154983145983137983148 983140983141 983160 (983160)

floor(x) 983117983137983161983151983154 983158983137983148983151983154 983141983150983156983141983154983151 lt 983160

ceiling(x) 983117983141983150983151983154 983158983137983148983151983154 983141983150983156983141983154983151 gt 983160

trunc(x)

983126983137983148983151983154 983141983150983156983141983154983151 983149983265983155 983152983154983283983160983145983149983151 983137 983160 983141983150983156983154983141 983160 983161 0 C983151983145983150983139983145983140983141 983139983151983150

983142983148983151983151983154(983160) 983152983137983154983137 983158983137983148983151983154983141983155 983152983151983155983145983156983145983158983151983155 983161 983139983151983150 983139983141983145983148983145983150983143 (983160) 983152983137983154983137 983158983137983148983151983154983141983155

983150983141983143983137983156983145983158983151983155

round(x digits=0)

983122983141983140983151983150983140983141983137 983141983148 983158983137983148983151983154 983140983141 983160 983155983145983141983150983140983151 983140983145983143983145983156983155 983141983148 983150983290983149983141983154983151 983140983141 983140983141983139983145983149983137983148983141983155

983153983157983141 983155983141 983152983141983154983149983145983156983141983150

signif(x digits=6) D983141983158983157983141983148983158983141 983141983148 983158983137983148983151983154 983140983141 983160 983139983151983150 6 983140983277983143983145983156983151983155 983141983150 983150983151983156983137983139983145983283983150 983139983145983141983150983156983277983142983145983139983137

cos(x) C983151983155983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

sin(x) 983123983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

tan(x) 983124983137983150983143983141983150983156983141 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

acos(x)asin(x)atan(x) F983157983150983139983145983151983150983141983155 983156983154983145983143983151983150983151983149983273983156983154983145983139983137983155 983145983150983158983141983154983155983137983155

abs(x) 983126983137983148983151983154 983137983138983155983151983148983157983156983151 983140983141 983160

983109983146983141983154983139983145983139983145983151 1 983122983141983137983148983145983162983137983154 983137983148983143983157983150983151983155 983139983265983148983139983157983148983151983155 983137983154983145983156983149983273983156983145983139983151983155 983141983150 983122

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 514

3 983126983105983122983113983105983106983116983109983123 983129 983126983109983107983124983119983122983109983123

E983150 983122 983137 983140983145983142983141983154983141983150983139983145983137 983140983141 983151983156983154983151983155 983148983141983150983143983157983137983146983141983155 983150983151 983141983155 983150983141983139983141983155983137983154983145983151 983140983141983139983148983137983154983137983154 983137 983152983154983145983151983154983145 983141983148 983150983151983149983138983154983141 983161 983141983148 983156983145983152983151 983140983141 983148983137983155

983158983137983154983145983137983138983148983141983155 983120983137983154983137 983137983155983145983143983150983137983154983148983141 983157983150 983158983137983148983151983154 983155983141 983157983155983137 983141983148 983155983145983143983150983151 lt- 983116983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155 983141983149983152983145983141983162983137983150 983152983151983154

983157983150983137 983148983141983156983154983137 983153983157983141 983152983157983141983140983141 983145983154 983155983141983143983157983145983140983137 983140983141 983149983265983155 983148983141983156983154983137983155 983140983277983143983145983156983151983155 983151 983148983151983155 983139983137983154983137983139983156983141983154983141983155 983152983157983150983156983151 () 983151 983148983277983150983141983137 983140983141

983155983157983138983154983137983161983137983140983151 ( _ )

983116983151983155 983140983145983155983156983145983150983156983151983155 983156983145983152983151983155 983140983141 983158983137983148983151983154983141983155 983153983157983141 983122 983137983155983145983143983150983137 983137 983148983137983155 983158983137983154983145983137983138983148983141983155 983155983151983150

983117983151983140983151 983124983145983152983151logic 983158983137983148983151983154983141983155 983148983283983143983145983139983151983155 TRUE (T) 983151 FALSE (F) numeric 983150983290983149983141983154983151983155 983154983141983137983148983141983155integer 983158983137983148983151983154983141983155 983141983150983156983141983154983151983155double 983158983137983148983151983154983141983155 983154983141983137983148983141983155 983139983151983150 983140983151983138983148983141 983152983154983141983139983145983155983145983283983150complex 983150983290983149983141983154983151983155 983139983151983149983152983148983141983146983151983155character 983139983137983154983137983139983156983141983154983141983155 (983148983141983156983154983137983155 983161983151 983150983290983149983141983154983151983155)

NA 983140983137983156983151 983150983151 983140983145983155983152983151983150983145983138983148983141 (983150983151983156 983137983158983137983145983148983137983138983148983141) NaN 983150983151 983141983155 983157983150 983150983290983149983141983154983151 (983150983151983156 983137 983150983157983149983138983141983154 )

E983148 983156983145983152983151 983138983265983155983145983139983151 983140983141 983151983138983146983141983156983151983155 983140983141 983122 983155983151983150 983148983151983155 983158983141983139983156983151983154983141983155 983123983141 983156983154983137983156983137 983140983141 983141983155983156983154983157983139983156983157983154983137983155 983137983156983283983149983145983139983137983155 983152983157983141983155983156983151 983153983157983141 983156983151983140983151983155

983155983157983155 983141983148983141983149983141983150983156983151983155 983140983141983148 983158983141983139983156983151983154 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983151983149983152983148983141983146983151 983148983283983143983145983139983151 983151 983140983141 983139983137983154983265983139983156983141983154)

E983146983141983149983152983148983151983155 983140983141 983139983154983141983137983139983145983283983150 983140983141 983158983141983139983156983151983154983141983155 983155983151983150

gt c(12345)

[1] 1 2 3 4 5

gt c(TFTT)

[1] TRUE FALSE TRUE TRUE

gt xlt-c(BadajozCaacuteceres)

gt x

[1] Badajoz Caacuteceres

gt c(123cuatro)-gtxgt x

[1] 1 2 3 cuatro

gt c(123F)

[1] 1 2 3 0

983116983137 983142983157983150983139983145983283983150 c() 983152983141983154983149983145983156983141 983139983151983150983139983137983156983141983150983137983154 983158983141983139983156983151983154983141983155 983120983151983154 983141983146983141983149983152983148983151

gt xlt-c(135)

gt ylt-c(246)

gt c(xy)

[1] 1 3 5 2 4 6

983120983151983140983141983149983151983155 983141983160983156983154983137983141983154 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983158983141983139983156983151983154 983140983141 983141983155983156983141 983149983151983140983151

gt xlt-c(12345678910)x[3]x[-3]x[c(157)]

[1] 3

[1] 1 2 4 5 6 7 8 9 10

[1] 1 5 7

983119 983141983158983137983148983157983137983154 983141983160983152983154983141983155983145983151983150983141983155 983152983137983154983137 983141983148 983158983141983139983156983151983154

gt xgt8

[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 4: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 414

2 983125983123983119 983107983119983117983119 983107983105983116983107983125983116983105983108983119983122983105 983107983113983109983118983124983245983110983113983107983105

983122 983152983157983141983140983141 983155983141983154 983157983156983145983148983145983162983137983140983151 983139983151983149983151 983157983150983137 983139983137983148983139983157983148983137983140983151983154983137 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151

983119983152983141983154983137983140983151983154983141983155 983123983145983143983150983145983142983145983139983137983140983151

983105 983154 983145 983156 983149 983273 983156 983145 983139 983151 983155

983122983141983155983156983151 983140983141 983157983150983137 983140983145983158983145983155983145983283983150

C983151983139983145983141983150983156983141 983141983150983156983141983154983151 983140983141 983148983137 983140983145983158983145983155983145983283983150

983117983157983148983156983145983152983148983145983139983137983139983145983283983150

+ 983123983157983149983137

- 983122983141983155983156983137

^ E983148983141983158983137983154 983137 983157983150983137 983152983151983156983141983150983139983145983137

D983145983158983145983155983145983283983150

983116 983283 983143 983145 983139 983151

983155

lt 983117983141983150983151983154 983153983157983141

lt= 983117983141983150983151983154 983151 983145983143983157983137983148 983153983157983141

gt 983117983137983161983151983154 983153983157983141

gt= 983117983137983161983151983154 983151 983145983143983157983137983148 983153983157983141

== I983143983157983137983148

= D983145983155983156983145983150983156983151

983110983157983150983139983145983283983150 983123983145983143983150983145983142983145983139983137983140983151

exp(x) E983160983152983151983150983141983150983139983145983137983148 983140983141 983160 (983141983160)

log(x) 983116983151983143983137983154983145983156983149983151 983150983141983152983141983154983145983137983150983151 983140983141 983160

log(xn) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 983150 983140983141 983160

log10(x) 983116983151983143983137983154983145983156983149983151 983141983150 983138983137983155983141 10 983140983141 983160

sqrt(x) 983122983137983277983162 983139983157983137983140983154983137983140983137 983140983141 983160

factorial(x) F983137983139983156983151983154983145983137983148 983140983141 983160 (983160)

floor(x) 983117983137983161983151983154 983158983137983148983151983154 983141983150983156983141983154983151 lt 983160

ceiling(x) 983117983141983150983151983154 983158983137983148983151983154 983141983150983156983141983154983151 gt 983160

trunc(x)

983126983137983148983151983154 983141983150983156983141983154983151 983149983265983155 983152983154983283983160983145983149983151 983137 983160 983141983150983156983154983141 983160 983161 0 C983151983145983150983139983145983140983141 983139983151983150

983142983148983151983151983154(983160) 983152983137983154983137 983158983137983148983151983154983141983155 983152983151983155983145983156983145983158983151983155 983161 983139983151983150 983139983141983145983148983145983150983143 (983160) 983152983137983154983137 983158983137983148983151983154983141983155

983150983141983143983137983156983145983158983151983155

round(x digits=0)

983122983141983140983151983150983140983141983137 983141983148 983158983137983148983151983154 983140983141 983160 983155983145983141983150983140983151 983140983145983143983145983156983155 983141983148 983150983290983149983141983154983151 983140983141 983140983141983139983145983149983137983148983141983155

983153983157983141 983155983141 983152983141983154983149983145983156983141983150

signif(x digits=6) D983141983158983157983141983148983158983141 983141983148 983158983137983148983151983154 983140983141 983160 983139983151983150 6 983140983277983143983145983156983151983155 983141983150 983150983151983156983137983139983145983283983150 983139983145983141983150983156983277983142983145983139983137

cos(x) C983151983155983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

sin(x) 983123983141983150983151 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

tan(x) 983124983137983150983143983141983150983156983141 983140983141 983160 (983141983150 983154983137983140983145983137983150983141983155)

acos(x)asin(x)atan(x) F983157983150983139983145983151983150983141983155 983156983154983145983143983151983150983151983149983273983156983154983145983139983137983155 983145983150983158983141983154983155983137983155

abs(x) 983126983137983148983151983154 983137983138983155983151983148983157983156983151 983140983141 983160

983109983146983141983154983139983145983139983145983151 1 983122983141983137983148983145983162983137983154 983137983148983143983157983150983151983155 983139983265983148983139983157983148983151983155 983137983154983145983156983149983273983156983145983139983151983155 983141983150 983122

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 514

3 983126983105983122983113983105983106983116983109983123 983129 983126983109983107983124983119983122983109983123

E983150 983122 983137 983140983145983142983141983154983141983150983139983145983137 983140983141 983151983156983154983151983155 983148983141983150983143983157983137983146983141983155 983150983151 983141983155 983150983141983139983141983155983137983154983145983151 983140983141983139983148983137983154983137983154 983137 983152983154983145983151983154983145 983141983148 983150983151983149983138983154983141 983161 983141983148 983156983145983152983151 983140983141 983148983137983155

983158983137983154983145983137983138983148983141983155 983120983137983154983137 983137983155983145983143983150983137983154983148983141 983157983150 983158983137983148983151983154 983155983141 983157983155983137 983141983148 983155983145983143983150983151 lt- 983116983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155 983141983149983152983145983141983162983137983150 983152983151983154

983157983150983137 983148983141983156983154983137 983153983157983141 983152983157983141983140983141 983145983154 983155983141983143983157983145983140983137 983140983141 983149983265983155 983148983141983156983154983137983155 983140983277983143983145983156983151983155 983151 983148983151983155 983139983137983154983137983139983156983141983154983141983155 983152983157983150983156983151 () 983151 983148983277983150983141983137 983140983141

983155983157983138983154983137983161983137983140983151 ( _ )

983116983151983155 983140983145983155983156983145983150983156983151983155 983156983145983152983151983155 983140983141 983158983137983148983151983154983141983155 983153983157983141 983122 983137983155983145983143983150983137 983137 983148983137983155 983158983137983154983145983137983138983148983141983155 983155983151983150

983117983151983140983151 983124983145983152983151logic 983158983137983148983151983154983141983155 983148983283983143983145983139983151983155 TRUE (T) 983151 FALSE (F) numeric 983150983290983149983141983154983151983155 983154983141983137983148983141983155integer 983158983137983148983151983154983141983155 983141983150983156983141983154983151983155double 983158983137983148983151983154983141983155 983154983141983137983148983141983155 983139983151983150 983140983151983138983148983141 983152983154983141983139983145983155983145983283983150complex 983150983290983149983141983154983151983155 983139983151983149983152983148983141983146983151983155character 983139983137983154983137983139983156983141983154983141983155 (983148983141983156983154983137983155 983161983151 983150983290983149983141983154983151983155)

NA 983140983137983156983151 983150983151 983140983145983155983152983151983150983145983138983148983141 (983150983151983156 983137983158983137983145983148983137983138983148983141) NaN 983150983151 983141983155 983157983150 983150983290983149983141983154983151 (983150983151983156 983137 983150983157983149983138983141983154 )

E983148 983156983145983152983151 983138983265983155983145983139983151 983140983141 983151983138983146983141983156983151983155 983140983141 983122 983155983151983150 983148983151983155 983158983141983139983156983151983154983141983155 983123983141 983156983154983137983156983137 983140983141 983141983155983156983154983157983139983156983157983154983137983155 983137983156983283983149983145983139983137983155 983152983157983141983155983156983151 983153983157983141 983156983151983140983151983155

983155983157983155 983141983148983141983149983141983150983156983151983155 983140983141983148 983158983141983139983156983151983154 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983151983149983152983148983141983146983151 983148983283983143983145983139983151 983151 983140983141 983139983137983154983265983139983156983141983154)

E983146983141983149983152983148983151983155 983140983141 983139983154983141983137983139983145983283983150 983140983141 983158983141983139983156983151983154983141983155 983155983151983150

gt c(12345)

[1] 1 2 3 4 5

gt c(TFTT)

[1] TRUE FALSE TRUE TRUE

gt xlt-c(BadajozCaacuteceres)

gt x

[1] Badajoz Caacuteceres

gt c(123cuatro)-gtxgt x

[1] 1 2 3 cuatro

gt c(123F)

[1] 1 2 3 0

983116983137 983142983157983150983139983145983283983150 c() 983152983141983154983149983145983156983141 983139983151983150983139983137983156983141983150983137983154 983158983141983139983156983151983154983141983155 983120983151983154 983141983146983141983149983152983148983151

gt xlt-c(135)

gt ylt-c(246)

gt c(xy)

[1] 1 3 5 2 4 6

983120983151983140983141983149983151983155 983141983160983156983154983137983141983154 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983158983141983139983156983151983154 983140983141 983141983155983156983141 983149983151983140983151

gt xlt-c(12345678910)x[3]x[-3]x[c(157)]

[1] 3

[1] 1 2 4 5 6 7 8 9 10

[1] 1 5 7

983119 983141983158983137983148983157983137983154 983141983160983152983154983141983155983145983151983150983141983155 983152983137983154983137 983141983148 983158983141983139983156983151983154

gt xgt8

[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 5: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 514

3 983126983105983122983113983105983106983116983109983123 983129 983126983109983107983124983119983122983109983123

E983150 983122 983137 983140983145983142983141983154983141983150983139983145983137 983140983141 983151983156983154983151983155 983148983141983150983143983157983137983146983141983155 983150983151 983141983155 983150983141983139983141983155983137983154983145983151 983140983141983139983148983137983154983137983154 983137 983152983154983145983151983154983145 983141983148 983150983151983149983138983154983141 983161 983141983148 983156983145983152983151 983140983141 983148983137983155

983158983137983154983145983137983138983148983141983155 983120983137983154983137 983137983155983145983143983150983137983154983148983141 983157983150 983158983137983148983151983154 983155983141 983157983155983137 983141983148 983155983145983143983150983151 lt- 983116983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155 983141983149983152983145983141983162983137983150 983152983151983154

983157983150983137 983148983141983156983154983137 983153983157983141 983152983157983141983140983141 983145983154 983155983141983143983157983145983140983137 983140983141 983149983265983155 983148983141983156983154983137983155 983140983277983143983145983156983151983155 983151 983148983151983155 983139983137983154983137983139983156983141983154983141983155 983152983157983150983156983151 () 983151 983148983277983150983141983137 983140983141

983155983157983138983154983137983161983137983140983151 ( _ )

983116983151983155 983140983145983155983156983145983150983156983151983155 983156983145983152983151983155 983140983141 983158983137983148983151983154983141983155 983153983157983141 983122 983137983155983145983143983150983137 983137 983148983137983155 983158983137983154983145983137983138983148983141983155 983155983151983150

983117983151983140983151 983124983145983152983151logic 983158983137983148983151983154983141983155 983148983283983143983145983139983151983155 TRUE (T) 983151 FALSE (F) numeric 983150983290983149983141983154983151983155 983154983141983137983148983141983155integer 983158983137983148983151983154983141983155 983141983150983156983141983154983151983155double 983158983137983148983151983154983141983155 983154983141983137983148983141983155 983139983151983150 983140983151983138983148983141 983152983154983141983139983145983155983145983283983150complex 983150983290983149983141983154983151983155 983139983151983149983152983148983141983146983151983155character 983139983137983154983137983139983156983141983154983141983155 (983148983141983156983154983137983155 983161983151 983150983290983149983141983154983151983155)

NA 983140983137983156983151 983150983151 983140983145983155983152983151983150983145983138983148983141 (983150983151983156 983137983158983137983145983148983137983138983148983141) NaN 983150983151 983141983155 983157983150 983150983290983149983141983154983151 (983150983151983156 983137 983150983157983149983138983141983154 )

E983148 983156983145983152983151 983138983265983155983145983139983151 983140983141 983151983138983146983141983156983151983155 983140983141 983122 983155983151983150 983148983151983155 983158983141983139983156983151983154983141983155 983123983141 983156983154983137983156983137 983140983141 983141983155983156983154983157983139983156983157983154983137983155 983137983156983283983149983145983139983137983155 983152983157983141983155983156983151 983153983157983141 983156983151983140983151983155

983155983157983155 983141983148983141983149983141983150983156983151983155 983140983141983148 983158983141983139983156983151983154 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983151983149983152983148983141983146983151 983148983283983143983145983139983151 983151 983140983141 983139983137983154983265983139983156983141983154)

E983146983141983149983152983148983151983155 983140983141 983139983154983141983137983139983145983283983150 983140983141 983158983141983139983156983151983154983141983155 983155983151983150

gt c(12345)

[1] 1 2 3 4 5

gt c(TFTT)

[1] TRUE FALSE TRUE TRUE

gt xlt-c(BadajozCaacuteceres)

gt x

[1] Badajoz Caacuteceres

gt c(123cuatro)-gtxgt x

[1] 1 2 3 cuatro

gt c(123F)

[1] 1 2 3 0

983116983137 983142983157983150983139983145983283983150 c() 983152983141983154983149983145983156983141 983139983151983150983139983137983156983141983150983137983154 983158983141983139983156983151983154983141983155 983120983151983154 983141983146983141983149983152983148983151

gt xlt-c(135)

gt ylt-c(246)

gt c(xy)

[1] 1 3 5 2 4 6

983120983151983140983141983149983151983155 983141983160983156983154983137983141983154 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983158983141983139983156983151983154 983140983141 983141983155983156983141 983149983151983140983151

gt xlt-c(12345678910)x[3]x[-3]x[c(157)]

[1] 3

[1] 1 2 4 5 6 7 8 9 10

[1] 1 5 7

983119 983141983158983137983148983157983137983154 983141983160983152983154983141983155983145983151983150983141983155 983152983137983154983137 983141983148 983158983141983139983156983151983154

gt xgt8

[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 6: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 614

983120983137983154983137 983139983154983141983137983154 983152983137983156983154983151983150983141983155 983144983137983161 983158983137983154983145983137983155 983142983151983154983149983137983155 983126983141983137983149983151983155 983139983283983149983151 983142983157983150983139983145983151983150983137983150

gt15

[1] 1 2 3 4 5

gtseq(16)

[1] 1 2 3 4 5 6

gt seq(16by=05) [1] 10 15 20 25 30 35 40 45 50 55 60

gt seq(16length=10)

[1] 1000000 1555556 2111111 2666667 3222222 3777778 4333333

4888889

[9] 5444444 6000000

gt rep(15)

[1] 1 1 1 1 1

gt rep(c(12)5)

[1] 1 2 1 2 1 2 1 2 1 2

gt rep(142)

[1] 1 2 3 4 1 2 3 4

gt rep(13c(145))

[1] 1 2 2 2 2 3 3 3 3 3

983109983146983141983154983139983145983139983145983151 2 C983154983141983137983154 983155983141983150983140983151983155 983158983141983139983156983151983154983141983155 983139983151983150 983148983151983155 50 983152983154983145983149983141983154983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983141 983145983149983152983137983154983141983155 983137 983148983151983155 983153983157983141

983148983148983137983149983137983154983273983145983155 983158983152 983161 983158983145 983154983141983155983152983141983139983156983145983158983137983149983141983150983156983141 C983151983150983139983137983156983141983150983137983154 983137983149983138983151983155 983158983141983139983156983151983154983141983155 983161 983155983141983148983141983139983139983145983151983150983137983154 983137983153983157983141983148983148983151983155 983158983137983148983151983154983141983155 983153983157983141

983151983139983157983152983137983150 983152983151983155983145983139983145983151983150983141983155 983153983157983141 983155983141983137983150 983149983290983148983156983145983152983148983151983155 983140983141 3

983109983146983141983154983139983145983139983145983151 3 C983154983141983137983154 983157983150 983158983141983139983156983151983154 983139983151983150 983148983151983155 983150983290983149983141983154983151983155 983140983141 983158983157983141983155983156983154983151 D983118I 983140983151983150983140983141 983139983137983140983137 983157983150983151 983140983141 983148983151983155 983150983290983149983141983154983151983155 983153983157983141

983148983151 983139983151983149983152983151983150983141983150 983140983141983138983141 983137983152983137983154983141983139983141983154 983154983141983152983141983156983145983140983151 983157983150 983150983290983149983141983154983151 983140983141 983158983141983139983141983155 983145983143983157983137983148 983137 983273983148 983149983145983155983149983151

4 983117983105983124983122983113983107983109983123 983105983122983122983105983129983123 983129 983108983105983124983105983110983122983105983117983109983123

983125983150983137 983149983137983156983154983145983162 983141983150 983122 983141983155 983157983150 983139983151983150983146983157983150983156983151 983140983141 983151983138983146983141983156983151983155 983145983150983140983145983162983137983140983151983155 983152983151983154 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983125983150 983137983154983154983137983161 983141983150 983122 983141983155 983148983151

983149983145983155983149983151 983155983137983148983158983151 983153983157983141 983152983157983141983140983141 983156983141983150983141983154 983149983265983155 983140983141 983140983151983155 983140983145983149983141983150983155983145983151983150983141983155

983116983137 983155983145983150983156983137983160983145983155 983143983141983150983141983154983137983148 983140983141 983148983137 983151983154983140983141983150 983152983137983154983137 983139983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983141983155

matrix(data nrow ncol byrow=F)

data 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983148983137 983149983137983156983154983145983162

nrow 983150983290983149983141983154983151 983140983141 983142983145983148983137983155 983140983141 983148983137 983149983137983156983154983145983162

ncol 983150983290983149983141983154983151 983140983141 983139983151983148983157983149983150983137983155 983140983141 983148983137 983149983137983156983154983145983162

byrow 983116983151983155 983140983137983156983151983155 983155983141 983139983151983148983151983139983137983150 983152983151983154 983142983145983148983137983155 983151 983152983151983154 983139983151983148983157983149983150983137983155 983155983141983143983290983150 983155983141 983158983137983150 983148983141983161983141983150983140983151 983120983151983154 983140983141983142983141983139983156983151 983155983141983139983151983148983151983139983137983150 983152983151983154 983139983151983148983157983149983150983137983155

983120983151983140983141983149983151983155 983139983154983141983137983154 983149983137983156983154983145983139983141983155 983140983141983148 983155983145983143983157983145983141983150983156983141 983149983151983140983151

gt matrix(112)

gt m1lt-matrix(112 nrow=4)

gt m2lt-matrix(112 ncol=4)

gt matrix(c(123456789101112)ncol=4nrow=3)

gt matrix(c(123456789101112)ncol=4nrow=3byrow=T)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 7: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 714

983116983151983155 983140983137983156983151983155 983153983157983141 983139983151983150983156983145983141983150983141 983157983150983137 983149983137983156983154983145983162 983145983143983157983137983148 983153983157983141 983151983139983157983154983154983277983137 983152983137983154983137 983148983151983155 983158983141983139983156983151983154983141983155 983140983141983138983141983150 983155983141983154 983156983151983140983151983155 983140983141983148 983149983145983155983149983151

983156983145983152983151 (983150983157983149983273983154983145983139983151 983139983137983154983265983139983156983141983154 983151 983148983283983143983145983139983151)

983110983157983150983139983145983151983150983141983155 983139983151983150 983149983137983156983154983145983139983141983155dim() D983141983158983157983141983148983158983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

dimnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141 983157983150983137 983149983137983156983154983145983162

colnames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162rownames() D983141983158983157983141983148983158983141 983141983148 983150983151983149983138983154983141 983140983141 983148983137983155 983142983145983148983137983155 983140983141 983157983150983137 983149983137983156983154983145983162mode() D983141983158983157983141983148983158983141 983141983148 983156983145983152983151 983140983141 983140983137983156983151983155 983140983141 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162length() D983141983158983157983141983148983158983141 983141983148 983150983290983149983141983154983151 983156983151983156983137983148 983140983141 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983137983156983154983145983162

ismatrix() D983141983158983157983141983148983158983141 983124 983155983145 983141983148 983151983138983146983141983156983151 983141983155 983157983150983137 983149983137983156983154983145983162 F 983155983145 983150983151 983148983151 983141983155[ ] A983139983139983141983140983141 983137 983141983148983141983149983141983150983156983151983155 983140983141983150983156983154983151 983140983141 983148983137 983149983137983156983154983145983162apply() A983152983148983145983139983137 983157983150983137 983142983157983150983139983145983283983150 983155983151983138983154983141 983148983137983155 983142983145983148983137983155 983151 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162cbind() A983281983137983140983141 983157983150983137 983139983151983148983157983149983150983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162

983148983141983161983141983150983140983151 983148983151983155 983141983148983141983149983141983150983156983151983155 983152983151983154 983139983151983148983157983149983150983137983155rbind() A983281983137983140983141 983157983150983137 983142983145983148983137 983137 983157983150983137 983149983137983156983154983145983162 983140983137983140983137 983151 983139983154983141983137 983157983150983137 983149983137983156983154983145983162 983148983141983161983141983150983140983151 983148983151983155

983141983148983141983149983141983150983156983151983155 983152983151983154 983142983145983148983137983155t() 983124983154983137983155983152983151983150983141 983148983137 983149983137983156983154983145983162 983140983137983140983137

983125983150 983141983146983141983149983152983148983151 983140983141983148 983157983155983151 983140983141 983141983155983156983151983155 983139983151983149983137983150983140983151983155 983141983155 983141983148 983155983145983143983157983145983141983150983156983141

gt x lt- cbind(x1 = 3 x2 = c(41 25))

gt x

x1 x2

[1] 3 4

[2] 3 3

[3] 3 2

[4] 3 1

[5] 3 2

[6] 3 3

[7] 3 4

[8] 3 5

gt ylt-cbind(xc(18))

gt y

x1 x2

[1] 3 4 1

[2] 3 3 2

[3] 3 2 3

[4] 3 1 4

[5] 3 2 5

[6] 3 3 6

[7] 3 4 7

[8] 3 5 8

gt apply(x 2 sort)

x1 x2[1] 3 1

[2] 3 2

[3] 3 2

[4] 3 3

[5] 3 3

[6] 3 4

[7] 3 4

[8] 3 5

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 8: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 814

gt dimnames(x)[[1]] lt- letters[18]

gt x

x1 x2

a 3 4

b 3 3

c 3 2

d 3 1e 3 2

f 3 3

g 3 4

h 3 5

gt colsums lt- apply(x 2 sum)

gt rowsums lt- apply(x 1 sum)

gt rbind(cbind(x Rtot = rowsums) Ctot = c(colsums sum(colsums)))

x1 x2 Rtot

a 3 4 7

b 3 3 6

c 3 2 5

d 3 1 4

e 3 2 5

f 3 3 6

g 3 4 7

h 3 5 8

Ctot 24 24 48

E983148 983152983154983151983140983157983139983156983151 983149983137983156983154983145983139983145983137983148 983155983141 983154983141983137983148983145983162983137 983149983141983140983145983137983150983156983141 983141983148 983151983152983141983154983137983140983151983154 991260rdquo 983149983145983141983150983156983154983137983155 983153983157983141 991260rdquo 983154983141983137983148983145983162983137 983141983148 983152983154983151983140983157983139983156983151

983139983151983149983152983151983150983141983150983156983141 983137 983139983151983149983152983151983150983141983150983156983141

gt m1m2

[1] [2] [3] [4]

[1] 38 83 128 173

[2] 44 98 152 206

[3] 50 113 176 239[4] 56 128 200 272

983116983151983155 983139983151983149983137983150983140983151983155 983152983137983154983137 983149983137983150983141983146983137983154 983137983154983154983137983161983155 983155983151983150 983155983145983149983145983148983137983154983141983155 983137 983148983151983155 983153983157983141 983149983137983150983141983146983137983150 983149983137983156983154983145983139983141983155 983123983157 983140983141983142983145983150983145983139983145983283983150 983143983141983150983141983154983137983148

983141983155 983140983141 983148983137 983142983151983154983149983137

array(data dim=length(data))

983140983151983150983140983141 data 983155983151983150 983148983151983155 983140983137983156983151983155 983153983157983141 983142983151983154983149983137983150 983141983148 983137983154983154983137983161 983161 dim 983141983155 983157983150 983158983141983139983156983151983154 983139983151983150 983148983137983155 983140983145983149983141983150983155983145983151983150983141983155 983140983141983148 983137983154983154983137983161

gtarray(13c(24))

[1] [2] [3] [4]

[1] 1 3 2 1[2] 2 1 3 2

983109983146983141983154983139983145983139983145983151 5 C983154983141983137983154 983157983150983137 983149983137983156983154983145983162 983139983151983150 983139983157983137983156983154983151 983137983148983157983149983150983151983155 (983140983141 983141983155983156983141 983139983157983154983155983151) 983161 983155983157 983141983140983137983140 983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151 983161

983150983290983149983141983154983151 983140983141 983156983141983148983273983142983151983150983151 D983141983138983141983154983265 983137983152983137983154983141983139983141983154 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983139983151983148983157983149983150983137 (991260983141983140983137983140991261 991260983137983281983151 983140983141 983150983137983139983145983149983145983141983150983156983151991261

991260983156983141983148983273983142983151983150983151991261) 983161 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983142983145983148983137 983153983157983141 983155983141983154983265 983141983148 983150983151983149983138983154983141 983140983141983148 983137983148983157983149983150983151 983137983148 983153983157983141 983139983151983154983154983141983155983152983151983150983140983141983150 983148983151983155 983140983137983156983151983155

983116983151983155 983140983137983156983137983142983154983137983149983141983155 983157 983144983151983146983137983155 983140983141 983140983137983156983151983155 983155983151983150 983148983145983155983156983137983155 983153983157983141 983143983141983150983141983154983137983148983145983162983137983150 983137 983148983137983155 983149983137983156983154983145983139983141983155 983141983150 983141983148 983155983141983150983156983145983140983151 983140983141 983153983157983141 983148983137983155

983139983151983148983157983149983150983137983155 (983158983137983154983145983137983138983148983141983155 983137 983149983141983150983157983140983151) 983152983157983141983140983141983150 983155983141983154 983140983141 983140983145983142983141983154983141983150983156983141 983156983145983152983151 983141983150983156983154983141 983155983277 (983150983151 983156983151983140983137983155 983150983157983149983273983154983145983139983137983155 983152983151983154

983141983146983141983149983152983148983151) 983123983145983150 983141983149983138983137983154983143983151 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150983137 983149983145983155983149983137 983139983151983148983157983149983150983137 983140983141983138983141983150 983155983141983154 983140983141983148 983149983145983155983149983151 983156983145983152983151 A983148

983145983143983157983137983148 983153983157983141 983148983137983155 983142983145983148983137983155 983161 983139983151983148983157983149983150983137983155 983140983141 983157983150983137 983149983137983156983154983145983162 983156983151983140983151983155 983148983151983155 983141983148983141983149983141983150983156983151983155 983140983141 983157983150 983140983137983156983137983142983154983137983149983141 983140983141983138983141983150 983156983141983150983141983154 983148983137

983149983145983155983149983137 983148983151983150983143983145983156983157983140 D983141 983141983155983156983141 983149983151983140983151 983152983157983141983140983141983150 983157983155983137983154983155983141 983142983157983150983139983145983151983150983141983155 983156983137983148983141983155 983139983151983149983151 dimnames dim nrow

983155983151983138983154983141 983157983150 983140983137983156983137983142983154983137983149983141 983139983151983149983151 983155983145 983155983141 983156983154983137983156983137983154983137 983140983141 983157983150983137 983149983137983156983154983145983162 983161 983155983141 983152983157983141983140983141983150 983145983149983152983154983145983149983145983154 983141983150 983142983151983154983149983137 983149983137983156983154983145983139983145983137983148

983120983137983154983137 983139983154983141983137983154 983157983150 983151983138983146983141983156983151 983140983141 983141983155983156983141 983156983145983152983151 983157983155983137983154983141983149983151983155 983148983137 983142983157983150983139983145983283983150

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 9: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 914

dataframe( )

983116983137 983149983137983150983141983154983137 983149983265983155 983155983141983150983139983145983148983148983137 983140983141 983139983151983150983155983156983154983157983145983154983148983151 983141983155 983157983156983145983148983145983162983137983154 983148983137 983142983157983150983139983145983283983150 readtable( ) 983152983137983154983137 983148983141983141983154 983148983137 983144983151983146983137 983140983141

983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983152983151983154 983141983146983141983149983152983148983151 983140983141 983156983141983160983156983151 983151 983141983160983139983141983148 D983141983156983137983148983148983137983154983141983149983151983155 983141983148 983157983155983151 983140983141 983141983155983156983141 983139983151983149983137983150983140983151 983137

983139983151983150983156983145983150983157983137983139983145983283983150

5

983119983122983111983105983118983113983130983105983107983113983251983118 983108983109983116 983124983122983105983106983105983114983119

983116983151983155 983140983137983156983151983155 983155983157983141983148983141983150 983148983141983141983154983155983141 983140983141983155983140983141 983137983154983139983144983145983158983151983155 983141983160983156983141983154983150983151983155 983161 983150983151 983156983141983139983148983141983137983154983155983141 983140983141 983149983151983140983151 983145983150983156983141983154983137983139983156983145983158983151 983116983137983155

983139983137983152983137983139983145983140983137983140983141983155 983140983141 983148983141983139983156983157983154983137 983140983141 983137983154983139983144983145983158983151983155 983140983141 983122 983155983151983150 983155983141983150983139983145983148983148983137983155 983161 983155983157983155 983154983141983153983157983145983155983145983156983151983155 983155983151983150 983138983137983155983156983137983150983156983141 983141983155983156983154983145983139983156983151983155 983152983157983141983155 983155983141

983152983154983141983155983157983152983151983150983141 983153983157983141 983141983148 983157983155983157983137983154983145983151 983141983155 983139983137983152983137983162 983140983141 983149983151983140983145983142983145983139983137983154 983148983151983155 983137983154983139983144983145983158983151983155 983140983141 983140983137983156983151983155 983139983151983150 983151983156983154983137983155 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983149983151

983141983140983145983156983151983154983141983155 983140983141 983156983141983160983156983151 983152983137983154983137 983137983146983157983155983156983137983154983148983151983155 983137 983148983137983155 983150983141983139983141983155983145983140983137983140983141983155 983140983141 983122 G983141983150983141983154983137983148983149983141983150983156983141 983141983155983156983137 983156983137983154983141983137 983141983155 983138983137983155983156983137983150983156983141

983155983145983149983152983148983141

983123983145 983153983157983141983154983141983149983151983155 983137983148983149983137983139983141983150983137983154 983148983151983155 983140983137983156983151983155 983141983150 983144983151983146983137983155 983140983141 983140983137983156983151983155 983152983151983140983141983149983151983155 983148983141983141983154983148983151983155 983140983145983154983141983139983156983137983149983141983150983156983141 983139983151983150 983148983137 983142983157983150983139983145983283983150

scan( ) 983116983137 983151983154983140983141983150

gtscan(rdquodatosrdquo)

983148983141983141 983148983151983155 983140983137983156983151983155 983140983141 983157983150 983142983145983139983144983141983154983151 983140983141 983150983151983149983138983154983141 991260983140983137983156983151983155991261

983124983137983149983138983145983273983150 983152983151983140983141983149983151983155 983157983156983145983148983145983162983137983154 983141983155983156983137 983151983154983140983141983150 983152983137983154983137 983145983150983156983154983151983140983157983139983145983154 983140983137983156983151983155 983140983141983155983140983141 983148983137 983152983154983151983152983145983137 983158983141983150983156983137983150983137 983140983141 983139983151983149983137983150983140983151983155

983126983137983149983151983155 983145983150983156983154983151983140983157983139983145983141983150983140983151 983140983137983156983151983155 983144983137983155983156983137 983153983157983141 983153983157983141983154983137983149983151983155 983142983145983150983137983148983145983162983137983154 983149983151983149983141983150983156983151 983141983150 983153983157983141 983152983157983148983155983137983149983151983155 E983118983124E983122 983120983151983154

983141983146983141983149983152983148983151 983155983145 983153983157983141983154983141983149983151983155 983145983150983156983154983151983140983157983139983145983154 983148983151983155 983140983137983156983151983155 1 2 983161 3 983144983137983154983141983149983151983155

gtscan()

1 1

2 2

3 3

4

Read 3 items[1] 1 2 3

983116983137 983142983157983150983139983145983283983150 readtable 983148983141983141 983140983137983156983151983155 983140983141983155983140983141 983157983150 983137983154983139983144983145983158983151 983140983151983150983140983141 983137983152983137983154983141983139983141983150 983141983150 983142983151983154983149983137 983140983141 983156983137983138983148983137 983161 983139983154983141983137 983157983150

983140983137983156983137983142983154983137983149983141 983137 983152983137983154983156983145983154 983140983141 983141983148983148983151983155

983123983157 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

readtable(ldquofilerdquo head=T)

983120983151983154 983140983141983142983141983139983156983151 983141983148 983155983141983152983137983154983137983140983151983154 983141983150983156983154983141 983139983137983149983152983151983155 983141983155 983141983148 983141983155983152983137983139983145983137983140983151 983141983148 983139983137983154983265983139983156983141983154 983153983157983141 983140983141983150983151983156983137 983148983151983155 983140983141983139983145983149983137983148983141983155 983141983155 ldquordquo

head=T 983145983150983140983145983139983137 983153983157983141 983148983137 983152983154983145983149983141983154983137 983148983277983150983141983137 983140983141 983148983151983155 983140983137983156983151983155 983139983151983150983156983145983141983150983141 983148983151983155 983150983151983149983138983154983141983155 983140983141 983148983137983155 983158983137983154983145983137983138983148983141983155

983123983145 983141983155983139983154983145983138983145983149983151983155

gtreadtable(ldquodatosdatrdquosep=rdquordquo)

983141983155983156983137983154983277983137983149983151983155 983148983141983161983141983150983140983151 983148983151983155 983140983137983156983151983155 983140983141983148 983137983154983139983144983145983158983151 983140983137983156983151983155983086983140983137983156 983156983141983150983145983141983150983140983151 983141983150 983139983157983141983150983156983137 983153983157983141 983141983155983156983265983150 983155983141983152983137983154983137983140983151983155 983152983151983154

983139983151983149983137983155 983161 983153983157983141 983150983151 983144983137983161 983139983137983138983141983139983141983154983137

E983150 983148983137 983140983145983155983156983154983145983138983157983139983145983283983150 983140983141 983122 983155983141 983145983150983139983148983157983161983141983150 983137983148983143983157983150983151983155 983151983138983146983141983156983151983155 983139983151983150 983140983137983156983151983155 983156983137983150983156983151 983141983150 983148983137 983138983145983138983148983145983151983156983141983139983137 983138983137983155983141 983139983151983149983151 983141983150 983141983148

983154983141983155983156983151 983125983155983137983149983151983155 983148983137 983151983154983140983141983150

gtlibrary(car)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 10: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1014

983152983137983154983137 983139983137983154983143983137983154 983141983148 983152983137983153983157983141983156983141 983151 983138983145983138983148983145983151983156983141983139983137 car

983120983137983154983137 983151983138983156983141983150983141983154 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983140983137983156983151983155 983140983145983155983152983151983150983145983138983148983141983155 983140983141 983148983137983155 983138983145983138983148983145983151983156983141983139983137983155 983139983151983150983141983139983156983137983140983137983155 983141983150 983157983150

983140983141983156983141983154983149983145983150983137983140983151 983149983151983149983141983150983156983151 983138983137983155983156983137 983139983151983150 983156983141983139983148983141983137983154

gtdata()

983161 983152983137983154983137 983139983137983154983143983137983154 983157983150983151983155 983140983137983156983151983155 983139983151983150983139983154983141983156983151983155

gtdata(nombre)

983116983137 983151983154983140983141983150

gtls()

983152983154983151983152983151983154983139983145983151983150983137 983157983150983137 983148983145983155983156983137 983140983141 983156983151983140983151983155 983148983151983155 983151983138983146983141983156983151983155 983139983154983141983137983140983151983155 983141983150 983122 983140983157983154983137983150983156983141 983148983137 983155983141983155983145983283983150 983140983141 983156983154983137983138983137983146983151

983120983137983154983137 983141983155983139983154983145983138983145983154 983148983151983155 983140983137983156983151983155 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983152983151983140983141983149983151983155 983157983155983137983154 983148983137 983142983157983150983139983145983283983150 write

write(x file=rdquodatardquo sep=rdquordquo dec=rdquordquo)

983116983137 983151983154983140983141983150 writetable 983141983155983139983154983145983138983141 983141983148 983141983148983141983149983141983150983156983151 x 983141983150 983141983148 983137983154983139983144983145983158983151 file 983156983154983137983155 983144983137983138983141983154983148983151 983139983151983150983158983141983154983156983145983140983151 983141983150 983157983150

983140983137983156983137983142983154983137983149983141 983155983145 983150983151 983148983151 983141983154983137

writetable(x file=rdquordquo sep=rdquo rdquo dec=rdquordquo)

6 983122983109983120983122983109983123983109983118983124983105983107983113983251983118 983111983122983233983110983113983107983105 983108983109 983110983125983118983107983113983119983118983109983123

983120983137983154983137 983154983141983152983154983141983155983141983150983156983137983154 983143983154983265983142983145983139983137983155 983140983141 983142983157983150983139983145983151983150983141983155 983157983155983137983149983151983155 983148983137 983151983154983140983141983150 plot() 983120983151983154 983141983146983141983149983152983148983151

gt plot(sin -pi 2pi)

983119983156983154983151 983157983155983151 983140983141 983141983155983156983137 983142983157983150983139983145983283983150 983141983155 983152983154983151983140983157983139983145983154 983157983150 983140983145983137983143983154983137983149983137 983140983141 983152983157983150983156983151983155 983140983141 983161 983142983154983141983150983156983141 983137 983160 983120983151983154 983141983146983141983149983152983148983151

gt xlt-seq(-33001)

gt plot(xdnorm(x)type=pcol=2main=Densidad N(01))

983116983137 983151983154983140983141983150 type 983155983145983154983158983141 983152983137983154983137 983139983137983149983138983145983137983154 983148983137 983154983141983152983154983141983155983141983150983156983137983139983145983283983150 983140983141 983148983151983155 983152983157983150983156983151983155 983153983157983141 983152983151983154 983140983141983142983141983139983156983151 983155983141 983157983150983141983150

983149983141983140983145983137983150983156983141 983148983277983150983141983137983155 (ldquoprdquo 983139983151983154983154983141983155983152983151983150983140983141 983137 983152983157983150983156983151983155 ldquolrdquo 983137 983148983277983150983141983137983155 983161 ldquobrdquo 983137 983152983157983150983156983151983155 983157983150983145983140983151983155 983152983151983154 983148983277983150983141983137983155) E983148

983139983151983148983151983154 983140983141 983148983137 983143983154983265983142983145983139983137 983155983141 983152983157983141983140983141 983140983141983142983145983150983145983154 983149983141983140983145983137983150983156983141 col 983161 983148983137 983151983154983140983141983150 main 983152983141983154983149983145983156983141 983137983281983137983140983145983154 983157983150 983156983277983156983157983148983151 983137 983148983137

983143983154983265983142983145983139983137

A983140983141983149983265983155 983148983137983155 983142983157983150983139983145983151983150983141983155 lines() 983161 points() 983152983141983154983149983145983156983141983150 983155983157983152983141983154983152983151983150983141983154 983148983277983150983141983137983155 983137 983157983150 983143983154983265983142983145983139983151 983161983137 983141983160983145983155983156983141983150983156983141

983116983137 983152983154983145983149983141983154983137 983152983145983150983156983137 983148983277983150983141983137983155 983161 983148983137 983155983141983143983157983150983140983137 983152983157983150983156983151983155

gt lines(xdnorm(x1)col=3)

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 11: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1114

7 983109983123983124983122983125983107983124983125983122983105983123 983108983109 983120983122983119983111983122983105983117983105983107983113983251983118

983122 983152983141983154983149983145983156983141 983141983155983139983154983145983138983145983154 983139983151983149983137983150983140983151983155 983141983150 983148983137 983149983145983155983149983137 983148983277983150983141983137 983157983156983145983148983145983162983137983150983140983151 983141983148 983139983137983154983265983139983156983141983154 ldquordquo 983116983151983155 983139983151983149983137983150983140983151983155 983152983157983141983140983141983150

983137983143983154983157983152983137983154983155983141 983141983150983156983154983141 983148983148983137983158983141983155

comando1 comando2 comando3

71 983107983119983118983108983113983107983113983119983118983105983116983109983123

983120983137983154983137 983148983137 983141983146983141983139983157983139983145983283983150 983139983151983150983140983145983139983145983151983150983137983148 983140983141 983155983141983150983156983141983150983139983145983137983155 983148983137 983151983154983140983141983150 983153983157983141 983157983155983137983154983141983149983151983155 983141983155 if

if (expr_1) expr_2 else expr_3

983140983151983150983140983141 expr_1 983140983141983138983141 983152983154983151983140983157983139983145983154 983157983150 983158983137983148983151983154 983148983283983143983145983139983151 983140983141 983149983151983140983151 983153983157983141 983155983145 983273983155983156983141 983141983155 983158983141983154983140983137983140983141983154983151 (983124) 983155983141 983141983146983141983139983157983156983137

expr_2 983161 983155983145 983141983155 983142983137983148983155983151 (F) 983155983141 983141983146983141983139983157983156983137 expr_3

983120983151983154 983141983146983141983149983152983148983151 983158983137983149983151983155 983137 983139983154983141983137983154 983140983151983155 983148983145983155983156983137983155 983157983150983137 983152983137983154983137 983143983157983137983154983140983137983154 983148983151983155 983150983290983149983141983154983151983155 983152983137983154983141983155 983140983141 1 983137 10 983161 983151983156983154983137 983152983137983154983137 983148983151983155

983145983149983152983137983154983141983155

gt n lt- 10

gt pares lt- c()

gt impares lt- c()

gt for(i in 1n) if(i2==0) pareslt-c(paresi) else impareslt-

c(imparesi)

gt pares

[1] 2 4 6 8 10

gt impares

[1] 1 3 5 7 9

72 983107983113983107983116983119983123983120983137983154983137 983139983154983141983137983154 983157983150 983138983157983139983148983141 983154983141983152983141983156983145983156983145983158983151 for 983148983137 983155983145983150983156983137983160983145983155 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

for (nombre in expr_1) expr_2

983140983151983150983140983141 nombre 983141983155 983148983137 983158983137983154983145983137983138983148983141 983140983141 983139983151983150983156983154983151983148 983140983141 983148983137 983145983156983141983154983137983139983145983283983150 expr_1 983141983155 983157983150 983158983141983139983156983151983154 (983157983155983157983137983148983149983141983150983156983141 983140983141 983148983137

983142983151983154983149983137 mn) 983161 expr_2 983141983155 983148983137 983141983160983152983154983141983155983145983283983150 983137 983141983146983141983139983157983156983137983154 983153983157983141 983155983141 983141983158983137983148983290983137 983154983141983152983141983156983145983140983137983149983141983150983156983141

983120983151983154 983141983146983141983149983152983148983151

gt for(i in 110) print(i)

E983150 983139983157983137983150983156983151 983137 while 983148983137 983155983145983150983156983137983160983145983155 983141983155 983139983151983149983151 983155983145983143983157983141

while (condicion) expr

983153983157983141 983141983146983141983139983157983156983137 expr 983149983145983141983150983156983154983137983155 983153983157983141 983155983141 983139983157983149983152983148983137 condicioacuten

983120983151983154 983141983146983141983149983152983148983151

gt nlt-1

gt while (nlt=10) print(n)n=n+1

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 12: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1214

983109983146983141983154983139983145983139983145983151 6 E983150983139983151983150983156983154983137983154 983139983157983265983148 983141983155 983141983148 983149983137983161983151983154 983150983290983149983141983154983151 983141983150983156983141983154983151 983139983157983161983151 983139983157983137983140983154983137983140983151 983150983151 983141983160983139983141983140983141 983140983141 1000

983157983156983145983148983145983162983137983150983140983151 983148983137 983151983154983140983141983150 while

8

983109983123983107983122983113983124983125983122983105 983108983109 983118983125983109983126983105983123 983110983125983118983107983113983119983118983109983123983122 983152983141983154983149983145983156983141 983139983154983141983137983154 983150983157983141983158983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983155983141 983152983157983141983140983141983150 983157983156983145983148983145983162983137983154 983137 983155983157 983158983141983162 983141983150 983141983160983152983154983141983155983145983151983150983141983155 983152983151983155983156983141983154983145983151983154983141983155 983116983137

983142983151983154983149983137 983143983141983150983141983154983137983148 983140983141 983144983137983139983141983154983148983151 983141983155 983148983137 983155983145983143983157983145983141983150983156983141

nombre lt- function (arg_1 arg_2 ) expr

983140983151983150983140983141 nombre 983141983155 983141983148 983150983151983149983138983154983141 983153983157983141 983148983141 983140983137983149983151983155 983137 983148983137 983142983157983150983139983145983283983150 arg_1 arg_2 hellip 983139983151983150983156983145983141983150983141983150 983148983151983155 983152983137983154983265983149983141983156983154983151983155

983140983141 983148983137 983149983145983155983149983137 983161 comandos 983141983155 983157983150983137 983141983160983152983154983141983155983145983283983150 983153983157983141 983157983156983145983148983145983162983137 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983140983141 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983139983137983148983139983157983148983137983154

983157983150 983158983137983148983151983154

983116983137983155 983158983137983154983145983137983138983148983141983155 983140983141983142983145983150983145983140983137983155 983140983141983150983156983154983151 983140983141983148 983139983157983141983154983152983151 983140983141 983157983150983137 983142983157983150983139983145983283983150 983155983151983150 983148983151983139983137983148983141983155 983161 983140983141983155983137983152983137983154983141983139983141983150 983137983148 983156983141983154983149983145983150983137983154 983148983137

983141983146983141983139983157983139983145983283983150 983140983141 983148983137 983142983157983150983139983145983283983150

983123983145 983153983157983141983154983141983149983151983155 983142983145983146983137983154 983137983148983143983157983150983151 983140983141 983148983151983155 983137983154983143983157983149983141983150983156983151983155 983155983145983149983152983148983141983149983141983150983156983141 983148983141 983137983155983145983143983150983137983149983151983155 983141983148 983158983137983148983151983154 983157983155983137983150983140983151 983141983148 983155983145983143983150983151 991260=991261

nombre lt- function(arg_1 arg_2=val ) expr

983120983151983154 983141983146983141983149983152983148983151 983155983157983152983151983150983143983137983149983151983155 983153983157983141 983153983157983141983154983141983149983151983155 983140983141983142983145983150983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983139983137983148983139983157983148983141 983141983148 983158983137983148983151983154 983149983141983140983145983151 983140983141 983140983151983155

983150983290983149983141983154983151983155

gt media2lt-function(xy)return((x+y)2)

gt media2(1020)

983116983137 983142983157983150983139983145983283983150 return 983148983141 983140983145983139983141 983137 983148983137 983142983157983150983139983145983283983150 983139983154983141983137983140983137 983153983157983273 983158983137983148983151983154 983140983141983138983141 983140983141983158983151983148983158983141983154 983118983151 983141983155 983150983141983139983141983155983137983154983145983151 983153983157983141 983156983151983140983137

983142983157983150983139983145983283983150 983139983151983150983156983141983150983143983137 983150983141983139983141983155983137983154983145983137983149983141983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150 return 983144983137983161 983149983157983139983144983137983155 983142983157983150983139983145983151983150983141983155 983153983157983141 983141983142983141983139983156983290983137983150

983140983145983155983156983145983150983156983137983155 983156983137983154983141983137983155 983155983145983150 983150983141983139983141983155983145983140983137983140 983140983141 983140983141983158983151983148983158983141983154 983157983150 983154983141983155983157983148983156983137983140983151

983109983146983141983154983139983145983139983145983151 7 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983145983150983156983141983154983139983137983149983138983145983141 983148983151983155 983158983137983148983151983154983141983155 983140983141 983140983151983155 983158983137983154983145983137983138983148983141983155 983140983141983150983151983149983145983150983137983140983137983155 983160 983141 983161

983109983146983141983154983139983145983139983145983151 8 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983143983141983150983141983154983141 983148983151983155 983150 983152983154983145983149983141983154983151983155 983156983273983154983149983145983150983151983155 983140983141 983148983137 983155983141983154983145983141 983140983141 F983145983138983151983150983137983139983139983145

983109983146983141983154983139983145983139983145983151 9 E983155983139983154983145983138983145983154 983157983150983137 983142983157983150983139983145983283983150 983153983157983141 983141983155983139983154983145983138983137 991260H983151983148983137991261 983155983145 983141983148 983158983137983148983151983154 983140983141 983148983137 983158983137983154983145983137983138983148983141 983141983155 983149983141983150983151983154 983151 983145983143983157983137983148 983153983157983141 0

983161 983141983155983139983154983145983138983137 991260A983140983145983283983155991261 983155983145 983141983155 983149983137983161983151983154 E983158983137983148983157983137983154 983148983137 983142983157983150983139983145983283983150 983152983137983154983137 983148983151983155 983158983137983148983151983154983141983155 5 983161 9830855

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 13: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1314

9 983113983118983113983107983113983119 983129 983117983105983118983109983114983119 983108983109 983122 983107983119983117983117983105983118983108983109983122

983125983150983137 983158983141983162 983153983157983141 983122 983155983141 983141983155983156983265 983141983146983141983139983157983156983137983150983140983151 983155983145983149983152983148983141983149983141983150983156983141 983139983137983154983143983137983150983140983151 983141983148 983152983137983153983157983141983156983141 983122983139983149983140983154 983149983141983140983145983137983150983156983141 983148983137 983145983150983155983156983154983157983139983139983145983283983150

gtlibrary(Rcmdr)

983141983150 983148983137 983139983151983150983155983151983148983137 983140983141 983122 983151 983138983145983141983150 983155983141983148983141983139983139983145983151983150983137983150983140983151 983141983150 983141983148 983149983141983150983290 983120983137983153983157983141983156983141983155983085gtC983137983154983143983137983154 983120983137983153983157983141983156983141 983155983141 983145983150983145983139983145983137 983148983137 983145983150983156983141983154983142983137983162

983143983154983265983142983145983139983137 983140983141 983157983155983157983137983154983145983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983116983137983155 983158983141983150983156983137983150983137983155 983140983141 983122 C983151983149983149983137983150983140983141983154 983161 983122 C983151983150983155983151983148983141 983142983148983151983156983137983150 983148983145983138983154983141983149983141983150983156983141 983141983150 983141983148 983141983155983139983154983145983156983151983154983145983151 983123983145983141983149983152983154983141 983153983157983141 983155983141983137

983152983151983155983145983138983148983141 983141983155 983149983265983155 983155983141983150983139983145983148983148983151 983157983155983137983154 983148983151983155 983149983141983150983290983155 983161 983139983157983137983140983154983151983155 983140983141 983140983145983265983148983151983143983151 983140983141 983122 C983151983149983149983137983150983140983141983154

983109983148983141983149983141983150983156983151983155 983140983141 983122 983107983151983149983149983137983150983140983141983154

983116983137 983145983150983156983141983154983142983137983162 983122 C983151983149983149983137983150983140983141983154 983145983150983139983148983157983161983141 983148983151983155 983155983145983143983157983145983141983150983156983141983155 983141983148983141983149983141983150983156983151983155

983117983141983150983290

A983152983137983154983141983139983141 983141983150 983148983137 983152983137983154983156983141 983155983157983152983141983154983145983151983154 983140983141 983148983137 983158983141983150983156983137983150983137 983139983151983150 983148983137983155 983155983145983143983157983145983141983150983156983141983155 983151983152983139983145983151983150983141983155

983110983145983139983144983141983154983151 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983137983154983143983137983154 983161 983143983157983137983154983140983137983154 983137983154983139983144983145983158983151983155 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141

983154983141983155983157983148983156983137983140983151983155 983161983151 983141983148 983265983154983141983137 983140983141 983156983154983137983138983137983146983151 983140983141 983122 983139983137983149983138983145983137983154 983140983145983154983141983139983156983151983154983145983151 983140983141 983156983154983137983138983137983146983151 983161 983155983137983148983145983154

983109983140983145983156983137983154 983119983152983139983145983151983150983141983155 983152983137983154983137 983141983140983145983156983137983154 983148983151983155 983139983151983150983156983141983150983145983140983151983155 983140983141 983148983137983155 983158983141983150983156983137983150983137983155 (C983151983152983145983137983154 C983151983154983156983137983154 983120983141983143983137983154

B983151983154983154983137983154 B983157983155983139983137983154 983123983141983148983141983139983139983145983151983150983137983154 D983141983155983144983137983139983141983154 983161 983122983141983144983137983139983141983154) 983161 983148983145983149983152983145983137983154 983148983137 983158983141983150983156983137983150983137 983141983150 983148983137 983139983157983137983148

983141983155983156983273 983155983145983156983157983137983140983151 983141983148 983139983157983154983155983151983154

983108983137983156983151983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983148983141983141983154 983161 983149983137983150983145983152983157983148983137983154 983140983137983156983151983155

983109983155983156983137983140983277983155983156983145983139983151983155 983123983157983138983149983141983150983290983155 983153983157983141 983139983151983150983156983145983141983150983141983150 983151983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983157983150983137 983158983137983154983145983141983140983137983140 983140983141 983137983150983265983148983145983155983145983155

983141983155983156983137983140983277983155983156983145983139983151983155 983138983265983155983145983139983151983155983111983154983265983142983145983139983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983139983154983141983137983154 983143983154983265983142983145983139983151983155 983141983155983156983137983140983277983155983156983145983139983151983155 983155983145983149983152983148983141983155

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086

Page 14: Tutorial R

7212019 Tutorial R

httpslidepdfcomreaderfulltutorial-r-56d9ec4a57ee6 1414

983117983151983140983141983148983151983155 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983154983141983155983290983149983141983150983141983155 983145983150983156983141983154983158983137983148983151983155 983140983141 983139983151983150983142983145983137983150983162983137 983156983141983155983156 983140983141

983144983145983152983283983156983141983155983145983155 983140983145983137983143983150983283983155983156983145983139983151983155 983161 983143983154983265983142983145983139983137983155 983152983137983154983137 983157983150 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983155983277 983139983151983149983151 983152983137983154983137

983137983281983137983140983145983154 983139983137983150983156983145983140983137983140983141983155 983140983145983137983143983150983283983155983156983145983139983137983155 983139983151983149983151 983154983141983155983145983140983157983151983155 983137 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983108983145983155983156983154983145983138983157983139983145983151983150983141983155 983120983154983151983138983137983138983145983148983145983140983137983140983141983155 983139983157983137983150983156983145983148983141983155 983161 983143983154983265983142983145983139983151983155 983152983137983154983137 983140983145983155983156983154983145983138983157983139983145983151983150983141983155 983141983155983156983137983140983277983155983156983145983139983137983155 983141983155983156983265983150983140983137983154983141983155

983112983141983154983154983137983149983145983141983150983156983137983155 983119983152983139983145983151983150983141983155 983152983137983154983137 983139983137983154983143983137983154 983152983137983153983157983141983156983141983155 983122 983161 983152983137983154983137 983141983155983156983137983138983148983141983139983141983154 983137983148983143983157983150983137983155 983151983152983139983145983151983150983141983155

983105983161983157983140983137 983119983152983139983145983151983150983141983155 983140983141 983149983141983150983290 983152983137983154983137 983151983138983156983141983150983141983154 983145983150983142983151983154983149983137983139983145983283983150 983155983151983138983154983141 983122 C983151983149983149983137983150983140983141983154

C983157983137983150983140983151 983157983150983137 983151983152983139983145983283983150 983140983141 983149983141983150983290 983137983152983137983154983141983139983141 983141983150 983143983154983145983155 983155983145983143983150983145983142983145983139983137 983153983157983141 983141983155983156983265 983145983150983137983139983156983145983158983137 983161 983150983151 983152983157983141983140983141 983137983152983148983145983139983137983154983155983141 983141983150 983141983148

983139983151983150983156983141983160983156983151 983137983139983156983157983137983148

B983137983146983151 983148983151983155 983149983141983150983290983155 983137983152983137983154983141983139983141 983157983150983137 983138983137983154983154983137 983140983141 983144983141983154983154983137983149983145983141983150983156983137983155 983139983151983150 983157983150983137 983142983145983148983137 983140983141 983138983151983156983151983150983141983155

983126983141983150983156983137983150983137 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983140983141 983122 983143983141983150983141983154983137983140983137983155 983152983151983154 983122 C983151983149983149983137983150983140983141983154

983124983137983149983138983145983273983150 983141983155 983152983151983155983145983138983148983141 983141983155983139983154983145983138983145983154 983140983145983154983141983139983156983137983149983141983150983156983141 983151 983149983151983140983145983142983145983139983137983154 983140983145983139983144983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983139983151983149983151 983148983151 983144983137983154983277983137983149983151983155 983141983150 983122

983156983154983137983155 983141983148 983155983277983149983138983151983148983151 983140983141 983155983145983155983156983141983149983137 gt 983123983145983150 983141983149983138983137983154983143983151 983141983148 983152983154983151983152983283983155983145983156983151 983140983141 983157983156983145983148983145983162983137983154 983122 C983151983149983149983137983150983140983141983154 983141983155 983141983158983145983156983137983154 983141983155983156983151

983120983154983141983155983145983151983150983137983150983140983151 983141983148 983138983151983156983283983150 E983146983141983139983157983156983137983154 983153983157983141 983141983155983156983265 983137 983148983137 983140983141983154983141983139983144983137 983138983137983146983151 983148983137 983158983141983150983156983137983150983137 983148983137 983148983277983150983141983137 983153983157983141 983139983151983150983156983145983141983150983141 983141983148 983139983157983154983155983151983154

983151 983138983145983141983150 983141983148 983138983148983151983153983157983141 983140983141 983145983150983155983156983154983157983139983139983145983151983150983141983155 983155983141983148983141983139983139983145983151983150983137983140983137983155 983155983141 983141983146983141983139983157983156983137 983152983137983154983137 983155983157 983154983141983155983151983148983157983139983145983283983150

983126983141983150983156983137983150983137 983140983141 983154983141983155983157983148983156983137983140983151983155 E983150 983141983148983148983137 983137983152983137983154983141983139983141983150 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983153983157983141 983155983141 983158983137983150 983143983141983150983141983154983137983150983140983151 983137983148 983141983146983141983139983157983156983137983154 983148983137983155

983145983150983155983156983154983157983139983139983145983151983150983141983155 983116983137983155 983145983150983155983156983154983157983139983139983145983151983150983141983155 983141983155983139983154983145983156983137983155 983141983150 983141983155983156983137 983158983141983150983156983137983150983137 983137983152983137983154983141983139983141983150 983141983150 983154983151983146983151 983161 983148983151983155 983154983141983155983157983148983156983137983140983151983155 983141983150 983137983162983157983148

983145983143983157983137983148 983153983157983141 983151983139983157983154983154983141 983141983150 983122 C983151983150983155983151983148983141

983117983141983150983155983137983146983141983155 A983152983137983154983141983139983141 983155983151983149983138983154983141983137983140983137 983141983150 983148983137 983152983137983154983156983141 983145983150983142983141983154983145983151983154 983161 983149983157983141983155983156983154983137 983149983141983150983155983137983146983141983155 983140983141 983141983154983154983151983154 983137983140983158983141983154983156983141983150983139983145983137983155 983161

983151983156983154983151 983156983145983152983151 983140983141 983145983150983142983151983154983149983137983139983145983283983150 983140983141 983157983156983145983148983145983140983137983140

983111983154983265983142983145983139983151983155 C983157983137983150983140983151 983139983154983141983137983149983151983155 983143983154983265983142983145983139983151983155 983273983155983156983151983155 983137983152983137983154983141983139983141983150 983141983150 983157983150983137 983158983141983150983156983137983150983137 983155983141983152983137983154983137983140983137

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155

983137983139983156983145983158983137983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983137983086

983120983154983141983155983145983151983150983265983150983140983151983148983151 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983137983155

983155983141983154983145983141983155 983140983141 983140983137983156983151983155 983153983157983141 983141983155983156983273983150 983141983150 983149983141983149983151983154983145983137

983105983138983154983141 983141983148 983141983140983145983156983151983154 983140983141 983140983137983156983151983155 983152983137983154983137 983149983151983140983145983142983145983139983137983154 983148983137

983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137

983120983141983154983149983145983156983141 983158983145983155983157983137983148983145983162983137983154 983148983137 983155983141983154983145983141 983140983141 983140983137983156983151983155 983137983139983156983145983158983137983086 983120983157983141983140983141

983152983141983154983149983137983150983141983139983141983154 983137983138983145983141983154983156983151 983149983145983141983150983156983154983137983155 983155983141 983154983141983137983148983145983162983137983150 983151983156983154983137983155

983151983152983141983154983137983139983145983151983150983141983155983086

983117983157983141983155983156983154983137 983141983148 983150983151983149983138983154983141 983140983141983148 983149983151983140983141983148983151 983141983155983156983137983140983277983155983156983145983139983151 983137983139983156983145983158983151

983080983157983150 983149983151983140983141983148983151 983148983145983150983141983137983148983084 983148983145983150983141983137983148 983143983141983150983141983154983137983148983145983162983137983140983151983084 983148983151983143983145983156

983149983157983148983156983145983150983151983149983145983137983148983084991270983081983086 983113983150983145983139983145983137983148983149983141983150983156983141 983150983151 983144983137983161 983150983145983150983143983157983150983151 983137983139983156983145983158983151983086

983120983157983148983155983137983150983140983151 983155983151983138983154983141 983141983148 983138983151983156983283983150 983152983151983140983141983149983151983155 983141983148983141983143983145983154 983141983150983156983154983141 983148983151983155

983149983151983140983141983148983151983155 983141983150 983149983141983149983151983154983145983137983086