Question

Please help with the below. Thank you! Please use R Console: I have to create a...

Please help with the below.

Thank you!

Please use R Console:

I have to create a command in R console so that below all has 3 bins.

Below is the data:

107 194 146 40 8 4 1

Please show the command so that all have minimum 3 bins.

The command should be something like the below:

newbreaks=c(breaks[1], breaks[i:j],breaks[n])

0 0
Add a comment Improve this question Transcribed image text
Answer #1


> rm(list=ls())
> (breaks=c(107,194,146,40,8,4,1))
[1] 107 194 146 40 8 4 1
> (n=length(breaks))
[1] 7
> (i=n-(n-2))
[1] 2
> (j=n-1)
[1] 6
> (newbreaks=c(breaks[1],breaks[i:j],breaks[n]))
[1] 107 194 146 40 8 4 1
>

Add a comment
Know the answer?
Add Answer to:
Please help with the below. Thank you! Please use R Console: I have to create a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT