R Basics

You can insert an R code chunk into an R Markdown document by using a keyboard shortcut. The default keyboard shortcut to insert an R code is:

Windows/Linux: Ctrl + Alt + I Mac: Command + Option + I

Make sure to comment on your code using #

Problem 1:

  1. From set = {1.5, 15, 0, 54, 23}, pick two numbers and perform the Following Operations:

.Subtraction .Multiplication .square root

numbers <- c(1.5, 15, 0, 54, 23)

##Pick two numbers, for example 15 and 23

subtruction

subtruction <- 23-15

multiplication

multiplication <- 15*23

square root

sqrt_15 <- sqrt(15)
sqrt_23 <- sqrt(23)