Originally, I really wanted to do a text mining package related to law but it was becoming too complex and I had like 6 steps and cleaning the data before was a mess. I honestly plan on picking this R package back up in the summer and trying to make it work. The R package(s)Continue reading “Final Project- TempConversion and Chipotle Packages”
Author Archives: mslement
Module #12 R Markdown
GitHub Repository Link(I also uploaded the html): https://github.com/mslement/IntroRProgrammingSlement/blob/master/RMarkdownTest.Rmd After watching the two videos in the module, I followed the “R Markdown Cheat Sheet” and “R Markdown Reference Guide” provided in the module. file:///Users/michelleslement/Downloads/rmarkdown-cheatsheet.pdf file:///Users/michelleslement/Downloads/rmarkdown-reference.pdf I was not sure if this was supposed to be for our final project or we were supposed to make somethingContinue reading “Module #12 R Markdown”
Module #10 DESCRIPTION
GitHub Repository link:https://github.com/mslement/LawWordCloud GitHub Repository link DESCRIPTION file: https://github.com/mslement/LawWordCloud/blob/master/DESCRIPTION My desktop opening up a new R project and linking it to my desktop folder as a working directory and I tried to connect it to my GitHub: I am planning on updating the description file towards the end of my R package project once IContinue reading “Module #10 DESCRIPTION”
Module #11 Debugging
To begin, we were given the following code to debug: I first ran the code to see if it compiled without any errors (spoiler… there were errors) I removed the extra } and formatted the function to be more readable. This code ran without any errors and I was able to view the function withContinue reading “Module #11 Debugging”
Module #9 Visualization in R
This week was almost a review from last semester’s data visualization class which was nice! I chose the “Wool” dataset in carData package but I ended up downloading it through read.csv(“Wool.csv”) function after putting the .csv file in my R programming folder. I originally chose this dataset because my sister lives in New Zealand onContinue reading “Module #9 Visualization in R”
Module 8 Assignment
This week’s assignment was pretty straightforward as we were given code to utilize and run through the steps given. Truthfully, I had to manipulate and change most of the given code on Canvas to be able to utilize it in my RStudio but everything ended up working out in the end. Step 1 – ImportingContinue reading “Module 8 Assignment”
Module #7 – R Object: S3 vs S4
Download any type of data (from the web or use datasets package) or create your own set. data(“iris”)head(iris)Sepal.Length Sepal.Width Petal.Length Petal.Width Species1 5.1 3.5 1.4 0.2 setosa2 4.9 3.0 1.4 0.2 setosa3 4.7 3.2 1.3 0.2 setosa4 4.6 3.1 1.5 0.2 setosa5 5.0 3.6 1.4 0.2 setosa6 5.4 3.9 1.7 0.4 setosalibrary(“pryr”, lib.loc=”/Library/Frameworks/R.framework/Versions/3.6/Resources/library”) R CodeContinue reading “Module #7 – R Object: S3 vs S4”
Module #6 Doing Math in R Part 2
This week we continued to evaluate matrixes in R using two given matrix sets(A and B), a diagonal matrix (4, 1, 2, 3) and then create a copy of a given matrix. 1. Consider A=matrix(c(2,0,1,3), ncol=2) and B=matrix(c(5,2,4,-1), ncol=2). A <- matrix(c(2,0,1,3), ncol=2)A [,1] [,2][1,] 2 1[2,] 0 3B <- matrix(c(5,2,4,-1), ncol=2)B [,1] [,2][1,] 5Continue reading “Module #6 Doing Math in R Part 2”
Module #5 Doing Math
This week we evaluated matrixes in R using two given matrix sets(A and B). Below is the R code console R provides with a lot of information as to why some codes did not work and resulted in an error. Most of the errors were a result of the dimensions of the two matrixes. ToContinue reading “Module #5 Doing Math”
Module #2 Assignment
This week I evaluated this code in R and GitHub: assignment2 <- c(16, 18, 14, 22, 27, 17, 19, 17, 17, 22, 20, 22) myMean <- function(assignment2) { return(sum(assignment)/length(someData))} myMean The code complied and ran as follows: >assignment2 <- c(16, 18, 14, 22, 27, 17, 19, 17, 17, 22, 20, 22) >myMean <- function(assignment2) {Continue reading “Module #2 Assignment”