Skip to content

Commit

Permalink
Changed range_mat to shape_mat on line 163
Browse files Browse the repository at this point in the history
  • Loading branch information
seankross committed Aug 21, 2014
1 parent 191471c commit 5fb06eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R_Programming_Alt/lapply_and_sapply/lesson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
Hint: Try lapply(flag_shapes, range) to apply the range() function to each column of flag_shapes.

- Class: cmd_question
Output: Do the same operation, but using sapply() and store the result in a variable called range_mat.
Output: Do the same operation, but using sapply() and store the result in a variable called shape_mat.
CorrectAnswer: shape_mat <- sapply(flag_shapes, range)
AnswerTests: omnitest(correctExpr='shape_mat <- sapply(flag_shapes, range)')
Hint: shape_mat <- sapply(flag_shapes, range) will apply the range() function to each column of flag_shapes and store the result in shape_mat.
Expand Down

0 comments on commit 5fb06eb

Please sign in to comment.