Assignment Blog 2; Fixing myMean To begin, we must first see what the problems are, and sometimes they're highlighted by the error message which is as follows: The error message shows that the code is not working as intended because "assignment" is not found. This helps us easily flag our issues within the code. First "someData" is not a variable that has been established so it cannot be referenced in this program, and sum(assignment) is missing the 2 that it very much needs to be the variable that has values stored. A corrected version of the above code is shown here: As you can see above, fixing the variable names allowed for the program to properly reference what it needed to, in order to function as intended. The average output is correct, double checked with a calculator just to be sure, with the mean score on assignment 2 being 19.25.
Posts
Showing posts from January, 2026
- Get link
- X
- Other Apps
Assignment #1 This is a first little test of what is possible in this blogging software. I enjoy WordPress more but unfortunately; I seem to be taking both of your classes at the same time which means for my own sanity I must use two different platforms to separate the classes properly in my mind. I'm sure it will be easier on you guys too. I have also done the github stuff: I think this will be an enjoyable semester and I honestly look forward to the challenge of this and my other classes. I nearly died last week to ketoacidosis; it was really close. The chance I get to sit here and do this after working a shift is something I don't take for granted anymore so let's continue. Here is the console window of RStudio: There were no issues installing, the links lead right where I needed to go, I downloaded R 4.5.2 for windows, my operating system is using 25H2 which is windows 11, and my R Studio version is 2026.01.0-392. I was also tasked with describing a vector, basically...