Logo

The Data Daily

Purchase Flower For Just Because Occasion. How `R` you doing it? | R-bloggers

Purchase Flower For Just Because Occasion. How `R` you doing it? | R-bloggers

Contact us
Purchase Flower For Just Because Occasion. How `R` you doing it?
Posted on September 3, 2022 by r on Everyday Is A School Day in R bloggers | 0 Comments
[This article was first published on r on Everyday Is A School Day , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here )
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Share Tweet
Just Because == Randomness
Randomness can be difficult to simulate because we are biased. Not that thinking of buying your spouse ???? flowers is a bad thing. What if you can preserve that idea and actualization by coding that! But how?
Thought Process:
Set a daily script run
1. How often do you want to buy flowers for just because occasion?
Ok, say for example, you want to buy flowers on average every 2 weeks. So that is 52 / 2 = 26. Let’s also assume that we may occasionally buy flowers for other special occasions such as Valentine’s day, Birthday, Anniversary etc.
For generosity purpose, let’s plan to buy flowers 24 times out of 365 days. Goodness me, if it is $50 per purchase, we will be spending on average $1200 per year just on flowers! Anyway, it’s for ???? which should be priceless! ????
FYI, this is purely for example purposes. Please do not take this as a baseline or default.
2. Set up randomness to that frequency of purchase
t

Images Powered by Shutterstock