S133HW1

# S133HW1 - Stat 133 Fall 2010 Homework 1 Writing R...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Stat 133, Fall 2010 Homework 1: Writing R Expressions Due Friday, Sept. 10 at 11 pm on bSpace Turn in a plain text file containing the R commands you use to solve the following problems. Put your name in a comment at the top of the file, and add comments throughout to indicate parts of the assignment and problem numbers. Some problems involve functions we have not covered in class; for these you need to use help and help.search . Part 1: Practice with R Expressions 1. Create a vector called mult3 containing every number between 4 and 127 that is evenly divisible by 3. 2. Print to the screen the values in mult3 that are also evenly divisible by 9 (but don’t change mult3 itself). 3. Remove every element of mult3 that is less than 100. 4. Generate a vector called x containing 100 random samples from a uniform distribu- tion. Calculate its mean. 5. Using implicit coercion, calculate what fraction of the values in x are less than 0.6....
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

S133HW1 - Stat 133 Fall 2010 Homework 1 Writing R...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online