Posts

Showing posts from March, 2021

Module 11

Image
 Debugging is an important part of being a programmer, unfortunately, it is the most infuriating part as well. In this module, we were asked to debug this code. So the first thing I did was just run the function by itself and I got this error: The second thing I did was try to find what kind of data could be inserted into it. I decided to make a list but it did not work I created a matrix. After doing so I tried to insert the matrix into the function which did not work so to figure out what the function was doing I spaced it out a bit and without deleting anything miraculously it worked. This confuses me.  Before:  After:  As you can see I just spaced-out line 9. Then I decided to run the matrix again and got this error: There is not a turkey.outlier I think the problem is that we need to remove that.  Removing it appears that the code works but just because it appears so doesn't mean it's actually working and I'm not quite sure how this function is working but ...

Module 10

Image
 This week's assignment was to create a description file for the R package we are going to create.  The package name is midio and the title is Daylio Visualizer.  This package is to be used with ggplot to create visualizations of data imported from the app named Daylio. Daylio is highly customizable productivity and mood tracking app.   We will start with version 0.1. Of course, the author and maintainer are yours truly.  The package will require a version of R greater than 3.1.2 and will need ggplot2.  Went with the CC0 license.  Encoding is UTF-8 and LazyData is true.  Please see my blog for more details: https://github.com/Midiquin/LIS4370.720S21/blob/main/desc_package

Module 9

Image
 In this module, we were tasked with picking random data and creating three visualizations from it. The data I chose was on the body weight and brain weight of five different primates.  I choose to use ggplot for all three visualizations. From my first visualization, I decided to create a bubble plot. The color indicates the type of primate and then the bubble size indicates the brain weight in grams.  The second visualization that I created is also known as a lollypop graph this one just shows the primates and body weight in kilograms.  The third visualization is a barplot under getting bodyweight primate type and brain weight in kilograms.  Please see my Github! https://github.com/Midiquin/LIS4370.720S21/blob/main/Mod9.R

Module #8

 In this module we discussed the input and output of our by looking at a few commands such as the scan, readline, and reading and writing file functions. So covered string manipulation functions as well as the PLYR package.  The scan function can easily scan a file into order. When scanning numbers the splitting on spaces or tabs is automatic.  Readline function is mostly used for prompting the user for input.  Print is something I've used a lot and R. It prints out a data set or other calculations onto the terminal.  The concatenation function also known as cat is best used when dealing with character strings. It is used to combine different strings together. this is useful for example if you have two columns with character values that you would like to combine into one column.  The read table Is more useful than scan because skin doesn't do so well with mixtures of numeric and character data as opposed to the read table function it will also fire in your ...