Yeah it 's a practice problem my prof gave me. Could you explain how to interpret this code? If we don't have R to actually run it, how will we determine the table x. The explanation I have is
100000*c(11/27,2/9,10/27)
40740.74, 22222.22, 37037.04
Thank.
Your first stop should be your professor or fellow students. Make sure you read the home work policy:
As far as I can tell, you cannot know exactly what table(x) will give you since the sample command is random. If you want the same numbers each time you need to use set.seed. The best way to work through the code is to use the help function for each command that you do not know (or Google it, most help files are online). If you need access to R and cannot install it on your own computer, you can use RStudio Cloud.