Posts

Showing posts from January, 2025

Module # 3 Data.frame

Image
Module # 3 Data.frame The data set below is based on the presidential election during 2016, where it outlined the name of the candidate, the source of the poll (ABC vs, CBS). Discuss your result in your blog. Important note, I made up this data, so this data does not reflect what really happened in the election.   > Name <- c("Jeb", “Donald”, "Ted”, “Marco” “Carly”, “Hillary”, “Berine”) > ABC political poll results <- c(4, 62 51, 21, 2, 14, 15) > CBS political poll results <- c(12, 75, 43, 19, 1, 21, 19)  When pasting this data into Rstudio, there were a few syntax errors that needed to be fixed. A comma needed to be added between 62 and 51. ABC political poll results and CBS political poll results need to have underscores. Lastly, The proper parenthesis need to be used for the politicians names. After performing corrections, I was able to receive the right values without error.  After receiving the right values, I wanted to to merge the data sets into ...

Module # 2 Introduction to basic R functions and Data Structures

Image
Module # 2 Introduction to Basic R functions and Data Structures Your assignment, evaluate the following function call  myMean . The data for this function called  assignment .  >  assignment2   <-   c ( 16 ,  18 ,  14 ,  22 ,  27 ,  17 ,  19 ,  17 ,  17 ,  22 ,  20 ,  22 ) > myMean <- function(assignment2) { return(sum(assignment2)/length(assignment2)) } > YOUR turn... Post the result of testing this function on your blog and your GitHub. Plus, provide reference and explanation as to why this function works or does not work? This is a screenshot of my console on R studio. From here you can see the values that fall under assignment2. This function takes the sum of all of the values of assignment2, which is 231, and divides them by the length, or total number of values found in assignment2, which is 12. This provides a result of 19.25. This result confirms that the myMean function doe...

Module # 1 assignment

 Hello Everyone! Welcome to my new blog. This blog will showcase the work I will accomplish in LIS4370 R Programming.  1. Open account on  GitHub.com Links to an external site.  and share the location of your repository in your blog.  My github or  https://github.com/AlenjaksAbraham/LIS4370.git 2. Open account on any blog sites (blogger.com, wordpress.com, or  blog . usf .edu), and share the site on Canvas. 3. Download R console and RStudio and report if you encounter any problems.  I already have this tools and have worked with them in previous semesters 4. Read R atloff Chapters 1-2 (what is vector etc) and Wickham 1-2  I have read these chapters.