This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Follow instructions here to enable dev mode and start VM | |
# https://github.com/lstoll/cros-crostini/blob/master/README.md | |
sudo apt-get update | |
sudo apt-get install -y libasound2 libxss1 wget | |
wget -qO- https://go.microsoft.com/fwlink/?LinkID=620884 | tar xvz | |
# Launch code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> median(FALSE) | |
[1] FALSE | |
> median(c(TRUE, FALSE)) | |
[1] 0.5 | |
> median(c(TRUE, FALSE, TRUE)) | |
[1] TRUE | |
> f <- factor(c('a', 'b', 'c'), levels = c('a', 'b', 'c'), ordered = TRUE) |