Update page 'Solutions to the questions concerning R language'
@@ -0,0 +1,10 @@
|
||||
***Applied Question***
|
||||
|
||||
**i.**
|
||||
```
|
||||
library(ISLR)
|
||||
set.seed(9004)
|
||||
train = sample(dim(OJ)[1], 800)
|
||||
OJ.train = OJ[train, ]
|
||||
OJ.test = OJ[-train, ]
|
||||
```
|
||||
Reference in New Issue
Block a user