day1_exercise4
Differences
This shows you the differences between two versions of the page.
| day1_exercise4 [2017/12/13 18:14] – created hyjeong | day1_exercise4 [2021/03/17 13:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | x = runif(10) | ||
| + | |||
| + | #1 | ||
| + | if(sum(x)> | ||
| + | cat(' | ||
| + | } else if(sum(x)< | ||
| + | cat(' | ||
| + | } else | ||
| + | cat(' | ||
| + | |||
| + | #2 | ||
| + | y = ifelse(x< | ||
| + | |||
| + | #3 | ||
| + | i=3 | ||
| + | switch(i, | ||
