Question: R studio coding help 1. Research shows that 3-D films can induce headaches and general motion sickness, due to unnatural eye movements. For this question
R studio coding help
1. Research shows that 3-D films can induce headaches and general motion sickness, due to unnatural eye movements. For this question use the film data (films.txt)-it is copied and pasted at the bottom because you cannot post files.
1A. Read the data into R. Call the dataset films. Provide your R code and the resulting data frame (Note: Variable names are included at the top of the dataset file, be sure these are read in correctly). Calculate the mean, median, and mode for the hpre and enjoy variables. Provide your R code and the resulting output.
1B. Calculate 3 of the measures of variability for the enjoy variable. (range, variance, standard deviation) Provide your R code and the resulting output
films.txt data set:
film type hpre hpost enjoy Avatar 2-D 10 4 7 Avatar 2-D 7 3 4 Avatar 2-D 4 10 10 Avatar 2-D 5 9 10 Avatar 2-D 5 2 4 Avatar 2-D 6 5 8 Avatar 3-D 5 7 5 Avatar 3-D 7 9 7 Avatar 3-D 4 1 4 Avatar 3-D 7 6 8 Avatar 3-D 7 7 6 Avatar 3-D 7 1 7 Avatar 3-D 5 6 8 Avatar 3-D 7 1 9 Avatar 3-D 9 6 8 Avatar 3-D 4 8 8 Avatar 3-D 4 9 8 Avatar 3-D 8 7 8 Avatar 3-D 5 10 8 Avatar 3-D 6 8 8 Shrek 2-D 4 3 3 Shrek 2-D 5 3 10 Shrek 2-D 3 2 10 Shrek 2-D 4 7 9 Shrek 2-D 3 3 5 Shrek 2-D 2 1 7 Shrek 3-D 1 1 9 Shrek 3-D 5 9 10 Shrek 3-D 2 9 6 Shrek 3-D 1 4 1 Shrek 3-D 2 5 2 Shrek 3-D 2 10 8 Shrek 3-D 2 9 4 Shrek 3-D 4 6 6 Shrek 3-D 5 8 3 Shrek 3-D 1 8 4 Shrek 3-D 1 7 6 ToyStory 2-D 4 2 6 ToyStory 2-D 3 7 6 ToyStory 2-D 3 2 7 ToyStory 2-D 2 5 6 ToyStory 2-D 4 7 3 ToyStory 3-D 1 3 2 ToyStory 3-D 1 1 2 ToyStory 3-D 1 1 7 ToyStory 3-D 3 6 6 ToyStory 3-D 2 9 3 Up 2-D 6 4 9 Up 2-D 4 1 8 Up 2-D 10 7 6 Up 2-D 6 6 8 Up 2-D 3 4 6 Up 2-D 9 4 7 Up 3-D 4 8 10 Up 3-D 7 3 6 Up 3-D 4 10 7 Up 3-D 4 5 7 Up 3-D 4 10 6 Up 3-D 1 5 7 Up 3-D 5 1 9 Up 3-D 1 7 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
