Write My Paper Button

WhatsApp Widget

For each R command below, please write the result you would get when you execute the command. (Of course, feel free to execute the command in R to see what it produces. However, to really benefit from this exercise, I recommend that you try to guess what the command will produce before you actually execute the command in R.): a) x = c(1,2,3,4,5) x b) y = seq(from=35, to=55, by=5) y c) z = seq(from=0, by=2, length=4) z d) x * y e) x * z f) a = x[x

BU510.650 – Data Analytics, Fall 2020
Assignment # 1
Please submit your answers in .pdf or .doc format through Blackboard and name your file using the
convention LastName_FirstName_AssignmentNumber. For example, Yazdi_Mohammad_1.pdf.
Please read “Introduction to R_1.pdf” which provides a brief R tutorial about the basics. “Introduction
to R_1.pdf” is posted on Blackboard under Assignment 1. After reading “Introduction to R_1.pdf”,
please answer the following question:
For each R command below, please write the result you would get when you execute the command. (Of
course, feel free to execute the command in R to see what it produces. However, to really benefit from
this exercise, I recommend that you try to guess what the command will produce before you actually
execute the command in R.):
a) x = c(1,2,3,4,5)
x
b) y = seq(from=35, to=55, by=5)
y
c) z = seq(from=0, by=2, length=4)
z
d) x * y
e) x * z
f) a = x[x<=3]
a
g) b = x==4
b
h) p = x[b]
p
i) m = c(2,4,6,8)
n = c(3,5,7,9)
o = 1:4
df = data.frame(m,n,o)
df
j) colnames(df)
k) df[3,]
l) df[,2]
m) df[3,2]
n) df[1:2,c(1,3)]
o) df$n
p) df$n[4]

 

 

 

APA

 

 

 

CLICK HERE FOR FURTHER ASSISTANCE ON THIS ASSIGNMENT

The post For each R command below, please write the result you would get when you execute the command. (Of course, feel free to execute the command in R to see what it produces. However, to really benefit from this exercise, I recommend that you try to guess what the command will produce before you actually execute the command in R.): a) x = c(1,2,3,4,5) x b) y = seq(from=35, to=55, by=5) y c) z = seq(from=0, by=2, length=4) z d) x * y e) x * z f) a = x[x<=3] a g) b = x==4 b h) p = x[b] p i) m = c(2,4,6,8) n = c(3,5,7,9) o = 1:4 df = data.frame(m,n,o) df j) colnames(df) k) df[3,] l) df[,2] m) df[3,2] n) df[1:2,c(1,3)] o) df$n p) df$n[4] appeared first on Apax Researchers.

CLAIM YOUR 30% OFF TODAY

X
Don`t copy text!
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
???? Hi, how can I help?