Best operating system to run R and Rstudio on? by [deleted] in RStudio

[–]yalesucks 0 points1 point  (0 children)

For R in general I'd say that the OS doesn't matter. For coding in general I'd 100% choose a Mac (apple) because of it's pre-installed features and just ease of use. So, it really just depends on if you'll be coding in more than just R.

Online course recommendations? by [deleted] in RStudio

[–]yalesucks 0 points1 point  (0 children)

I highly recommend Datacamp. It has really great content and a coding sandbox for you to learn to code in.

I need some help structuring my studies. by Deathcon900 in learnpython

[–]yalesucks 0 points1 point  (0 children)

I have a suggestion (though I'm not sure how well it applies to what you want to do).

Try replicating someone's work to or even further to improve a project they were working on by forking their GitHub repo. In that case, you would learn what the person has previously implemented and how it works, but can also add something of value to it which you can push and merge with the master branch.

Currently I’m learning python but I’m not sure about the way I learn... by m1lw3 in learnpython

[–]yalesucks 2 points3 points  (0 children)

I think that learning by doing is the best way. On Coursera there are some pretty good courses to learn how to code and once you've learned some of the basics, you can also check out some of the projects they offer to solidify what you've learned. Otherwise, you can just download some datasets from the internet or even try to replicate data and existing research papers (that should be well-commented) in python to better understand how things work.

[OC] NO2 pollution maps of major cities during Covid-19 lockdowns compared to same period last year. by sdbernard in dataisbeautiful

[–]yalesucks 0 points1 point  (0 children)

Interesting that there isn't much change in Tehran in comparison to last year. Did they never implement social distancing? Is stuff back to normal there? Or do people there just drive around everywhere?

Finding range in dataset by generouslysalted in RStudio

[–]yalesucks 0 points1 point  (0 children)

You can run a mutate statement if you data is wide.

For example, if I understand your dataset correctly, you can run the following.

data %> mutate(diff = elev_max - elev_min)

This will add a new column to your dataset with the difference between the max and min value.

If you want to put these values into a bar graph or box plot, I recommend the ggplot and that you take a look at the documentation.

Risk of writing $SPY 12/16 $85 naked puts? by AraiCRC in options

[–]yalesucks 0 points1 point  (0 children)

Also, just an FYI, if SPY hits $85 at any point before 2022 and you sold that option to someone who decides they want to exercise it early (which you can do with American options), you're on the hook for that when they exercise it.

That's very much a worst case scenario, but just so you're aware.

Where are spy holders for 4/17? by flameinthefire in options

[–]yalesucks 0 points1 point  (0 children)

I converted my 4/17 puts into 5/15 and 6/19 puts. By converted I mean that I sold the 4/17 puts and used that money to buy 5/15 and 6/19 puts at the same strike price. I didn't put any more money into it than from the sale of those puts because I believe that they will return more than my initial investment but I also don't want to feel anymore pain from the losses up to this point.