Question: Now is where things get fun! It is time to create your first vector. Since this is a finance oriented course, it is only appropriate
Now is where things get fun! It is time to create your first vector. Since this is a finance oriented course, it is only appropriate that your first vector be a numeric vector of stock prices. Remember, you create a vector using the combine function, c and each element you add is separated by a comma.
For example, this is a vector of Apple's stock prices from December, :
applestock c
And this is a character vector of bond credit ratings:
creditrating cAAAAABBBBBB
Instructions
XP
Another example of a numeric vector for IBM stock prices is shown for you.
Create a character vector of the finance related words "stocks", "bonds", and "investments", in that order.
Create a logical vector of TRUE, FALSE, TRUE in that order.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
