Major bug in my #rstats code with sample(x, 1). If length(x) > 1, then it samples 1 element from x. Otherwise, it samples from seq_len(x).
↧
Major bug in my #rstats code with sample(x, 1). If length(x) > 1, then it samples 1 element from x. Otherwise, it samples from seq_len(x).