This file contains hidden or 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
minVal <- 0 | |
maxVal <- 100 | |
medVal <- 70 | |
numRows <- 1000000 | |
adjMax <- maxVal - minVal | |
adjMed <- medVal - minVal | |
# Generate a vector that sets how likel | |
# each value is to be chosen. |
This file contains hidden or 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
# Add the following to your ~/.bashrc file. | |
# | |
# I was inspired to do this because, after learning R and getting | |
# used to doing e.g. "?install.packages" when I wanted a reminder | |
# of the parameters list for a function, I kept accidentally trying | |
# to use the question mark to pull up help in Bash as well, e.g. | |
# "?grep" instead of "man grep" | |
# R-style help lookup, by doing "?CMD" for "man CMD" | |
# or "??CMD" for "man -K CMD" |
NewerOlder