Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

R C:IUsers cespo Downloads ? ? H W 1 , r - R Editor # In doing this assignment, you will demonstrate some

R C:IUsers\cespo\Downloads ??HW1,r- R Editor
# In doing this assignment, you will demonstrate some basic functionality of R.
# Use what you learned in lecture to complete this assignment.
# For each question, type your answer on the line that follows the question prompt.
# CG Q1 # Use R to multiply 36 by 27.
36**27
# CG Q2 # In a single line, create a vector that consists of the numbers 1,6,7,10, and 6, nan
ved
# CG Q3 # Use the length function on vec to return the number of entries in vec.
# CG Q4 # Use the mean function on vec to find the average of the numbers in vec.
# CG Q5 # Add 2 to every entry of vec.
# CG Q6 # TYpe a line of code that returns TRUE for an entry of vec being equal to 6 and a FALSE
# CG 27 # Now use the sum function on your logical vector from Q3 to count the number of 6s in v
# CG Q8 # Use the which function on vec to return the position(s) of 6 within the vector.
# CG 29 # In a single statement, take the natural log of every entry of vec, name this object log
# CG Q10 # Use the exp function on logvec to return the raw values of vec.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Write formal proposal requests.

Answered: 1 week ago

Question

Write an effective news release.

Answered: 1 week ago

Question

Identify the different types of proposals.

Answered: 1 week ago