0

Lets say I have a table like this

Count   MyValue
1       1
2       2
3       3
4       4
5       5
5       6
4       7
3       8
2       9
1       10

If I create a histogram of MyValue it looks like this: enter image description here

What I want is a histogram of MyValue that, that also considers the Count. It should look like this:enter image description here

1 Answer 1

2

It is unclear what you expect as the result, but maybe this:

hist(rep(DF$MyValue, DF$Count))
Sign up to request clarification or add additional context in comments.

1 Comment

I edit my question a little bit. But what you posted is exactly what I was looking for. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.