Skip to content

Commit

Permalink
move changes from swcarpentry#280 to rmd and re-render
Browse files Browse the repository at this point in the history
  • Loading branch information
chendaniely committed Jul 16, 2017
1 parent 6e5669d commit c051286
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
17 changes: 10 additions & 7 deletions _episodes/12-supp-factors.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,17 @@ information built in. It is particularly helpful when there are many levels
> c) exercise < -factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = FALSE)
>
> d) exercise <- factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = TRUE)
>> ## Solution
>> Correct solution is **d)**
>> ~~~
>> exercise <- factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = TRUE)
>> ~~~
>> {: .r}
>> We only expect three cathegories ("n", "l", "i"). We can order these from least intense to most intense, so let's use `oredered`.
> > ## Solution
> > Correct solution is **d)**
> > ~~~
> > exercise <- factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = TRUE)
> > ~~~
> > {: .r}
> > We only expect three cathegories ("n", "l", "i").
> > We can order these from least intense to most intense, so let's use `oredered`.
> {: .solution}
{: .challenge}
### Converting Factors
Expand Down
11 changes: 11 additions & 0 deletions _episodes_rmd/12-supp-factors.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ information built in. It is particularly helpful when there are many levels
> c) exercise < -factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = FALSE)
>
> d) exercise <- factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = TRUE)
> > ## Solution
> > Correct solution is **d)**
> > ~~~
> > exercise <- factor(c("l", "n", "n", "i", "l"), levels = c("n", "l", "i"), ordered = TRUE)
> > ~~~
> > {: .r}
> > We only expect three cathegories ("n", "l", "i").
> > We can order these from least intense to most intense, so let's use `oredered`.
> {: .solution}
{: .challenge}
### Converting Factors
Expand Down

0 comments on commit c051286

Please sign in to comment.