QuestionQuestion

Transcribed TextTranscribed Text

Write an R script that contains the following R functions: 1. readData <- function(fileName); a. This function reads data from a CSV file called fileName. A data frame that stores the contents of this file is returned. 2. checkStudent <- function(df, studentName); a. This function extracts a particular student's grades data from a data frame and returns them. 3. checkAssessment <-function(df, assessmentName); a. This function returns a vector/list of three statistics, min, max, and average, about the assessment whose name is given as assessmentName. 4. calcAssessmentEffectiveScoreRatios <-function(o assessmentName) a. This function return a vector/list of effective score ratios for the assessment whose name is given as assessmentName. b. An effective score ratio for a particular student on a given assessment is the raw score divided by the point total for the assessment. For instance: if a student scored 18 out of 20 for an assessment, then the effective score ratio is 18/20. Data: name hwO hw1 hw2 hw3 hw4 hw5 hw6 quiz1 quiz2 quiz3 quiz4 quiz5 quiz6 term1 term2 term3 exam1 exam2 exam3 final 20 14 30 100 50 60 36 12 15 30 15 25 25 100 100 100 100 100 95 100 A 20 13 30 100 50 60 30 11 15 14 25 25 100 100 100 97 97 80 97 B 20 14 30 100 50 60 36 8 11 24 8 13 9 95 100 100 83 85 73 73 c 20 14 28 100 50 60 36 12 4 25 13 24 14 95 100 100 88 75 56 77 D 20 12 30 100 50 o 33 7 15 26 12 22 100 100 o 90 87 72 81 E 20 14 30 90 30 o 10 15 30 15 21 15 100 100 80 92 82 69 79 F 20 13 30 100 48 o 36 12 15 30 15 25 23 95 100 100 90 95 87 90 G 20 14 26 85 40 42 33 11 15 23 11 17 16 90 100 o 89 79 81 78 H 20 85 50 o 15 15 10 85 90 100 62 83 42 75 - 20 14 15 10 48 30 11 27 11 14 16 60 90 72 78 78 66 81 J 20 14 29 80 35 o 36 11 13 24 12 14 70 o 79 77 51 78 K 20 14 29 97 50 60 36 4 7 19 11 20 15 100 100 100 79 77 57 81 L 20 14 30 100 45 o 36 10 6 26 8 16 7 80 100 68 74 76 76 M 20 14 30 100 50 60 36 7 15 28 14 25 25 100 100 100 99 98 82 99 N 20 11 95 20 o 8 14 26 7 9 95 o 70 70 52 61 o 20 12 28 97 40 11 10 27 11 15 15 70 o 63 66 o P 20 13 90 45 o 20 4 13 30 10 20 17 90 100 100 75 72 56 64 o 20 14 30 100 45 o 36 12 21 11 14 17 75 90 75 72 84 54 63

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

rm(list=ls())

# 1.
readData <- function(fileName) {
dataRead <- read.csv(fileName)
}

# 2.
checkStudent <- function(dataFrame, studentName) {
grade <- dataFrame[ which(dataFrame$name==studentName),]
drop <- c("name")
grade <- grade[, !(names(grade) %in% drop)]
}...

By purchasing this solution you'll be able to access the following files:
Solution.R.

$30.00
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Statistics-R Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats