I know how to do part(a), but I don’t know how to use sapply function at part (b). Can you give me some hints?III. This problem will use R to ﬁnd all possible orderings of 7 objects, and probabilities associated with them. Consideryour vector of possible values to be:values = as.character(1 :7) (a) Use the function sample to draw from values 7 times (without replacement), and return this vector. Notice it is avector, with 7 values. Display your particular draw. (b) Repeat (a) 100000 times using an sapply. Notice the result has 7 rows, and 100000 columns, where each column isa speciﬁc random draw. Use this result to ﬁnd how many of your orderings begin with the character 1. (c) Use your samples from (b) to ﬁnd the probability that a random ordering started with a 3 and ended with a 7. (d) The function paste can collapse a vector of many characters into a single character with the following command:one.order = pasteCone.draw,collapse = "")Modify the above and use it with an sapply to ﬁnd how many unique orderings of 7 values there are (assumingorder matters and no repetitions are allowed).

#### Why Choose Us

- 100% non-plagiarized Papers
- 24/7 /365 Service Available
- Affordable Prices
- Any Paper, Urgency, and Subject
- Will complete your papers in 6 hours
- On-time Delivery
- Money-back and Privacy guarantees
- Unlimited Amendments upon request
- Satisfaction guarantee

#### How it Works

- Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
- Fill in your paper’s requirements in the "
**PAPER DETAILS**" section. - Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
- Click “
**CREATE ACCOUNT & SIGN IN**” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page. - From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.