Better HN
topnewbestaskshowjobs
Log inSign up

Yeikoff

7 karma · joined Dec 7, 2017 (8y ago) · 5 submissions

Submissions

comment 8y ago · link · parent

Lets do then. Player 1 randomizes (1/3, 1/3, 1/3). Player 2 randomizes (1, 0, 0). Does player 1 want to deviate? Yes! Randomizing is not the best strategy if player 2 is going to be playing the same pure strategy all the time, player 1 would be better off if she were to play the best response to whatever (1, 0, 0) is. -> Not an equilibrium.

comment 8y ago · link · parent

Just use the '<-' all the time, except in function calls. If you can use '<-' with an easy key press you will not be tempted to use '='. And the problem is greatly reduced.

But yes, the problem is still there.

comment 8y ago · link · parent

You are absolutely right, but then either you first post was missworded or I missunderstood the issue (most likely the latter), as there is a way to know the directory of the script.

100% agree with R is not a sane language.

comment 8y ago · link · parent

I do not really disagree with you, except for the '<-' bit, just map it to a keyboard shortcut, and move on :).

But I would give R a try with the tidyverse, it made me go from hating R to just not caring about it.

While libraries are extremely inconsistent, if you want to use cutting edge statistical methdos as a researcher, you pretty much have no other option. Finally, data wrangling is quite well developed in the R evironment.

So long story short, after many years of hating R, now I just find it a handy tool to do my work despite it being old, inconsistent and sometimes annoying.

comment 8y ago · link · parent

rstudioapi::getActiveDocumentContext()$path

I believe thats is what you are looking for.