Hi, I had a few questions from you on cat().
From lecture today, cat("x") prints
"x" to the screen. We used it to
print a couple things to the screen at
once:
cat("Probability of >=2 people having the same birthday:", sameday/sims,
"\n")
This means stick "Probability of ..." in front, then the number
sameday/sims, then a line break (which is the invisible character "\n"),
and print it all to screen. By default, the cat() puts a space between
each element (and you have to separate each element with a comma).
Yours,
Olivia.