forked from INFO-498F/L2_R_Skills
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab3Stuff.r
More file actions
32 lines (20 loc) · 1006 Bytes
/
Lab3Stuff.r
File metadata and controls
32 lines (20 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#practice utilizing R functions, learn to read in data
#create data and write files
#lab three
#using the function sample make a function that returns the sums
#of rolling two dice x amount of times
#practice plotting a vector
#create a vector with 10 numbers
#using plot, plot the vector
#read in the provided "yahooS.csv", it is a file of the stock price of yahoo at the
#beginning of each month in 2015 plotting it will display the information from the
#csv
# Call the diceroll function utilized earlier to simualte 10,000 rolls
# and plot it in a histogram
#explain the differences of a histogram and a plot to your neighbor
# write your dice roll results into a csv, append = true allows you to append to the file
# as you run, turning it to false will overwrite the file
#make a file of titled myRollsFifty where you append the file, 5 times with
#each addition being 10,000 rolls, then write another file of just 10,000 files
#then will be overwritten with each run
#view your file