Homework help starts here! title: "HW1" author: "TESHWANI GOGINENI" date: "2023-09-20" output: html_document: df_print: paged pdf_document: default word_document: default {r setup, include-FALSE} knitr::opts_chunk$set(echo = TRUE) (r) PartI # # 1.1 Vector # 1. Create 2 vector, each containing 10 random numbers. # First vector vector1 <- sample(1:50, 10, replace = F) # Second vector vector2 <- sample (51:100, 10, replace = F) # Printing the vectors print (vector1) print (vector2) {r} # 2. Append the second vector to the first one. vector_12 <-c(vector1, vector2) print (vector_12) (r) # 3. Calculate the mean of the new combined vector. vector_mean <- mean (vector_12) RUE'S TEIX 27 ROGRAERUGBOGBO GROLOGROGROG SECO BERO GROGRGUR NOGNDGRE UGNEGRU ERUGR ROGEOLO

Essentials Of Investments
11th Edition
ISBN:9781260013924
Author:Bodie, Zvi, Kane, Alex, MARCUS, Alan J.
Publisher:Bodie, Zvi, Kane, Alex, MARCUS, Alan J.
Chapter1: Investments: Background And Issues
Section: Chapter Questions
Problem 1PS
icon
Related questions
Question
Homework help starts here!
title: "HW1"
author: "TESHWANI GOGINENI"
date: "2023-09-20"
output:
html_document:
df_print: paged
pdf_document: default
word_document: default
{r setup, include-FALSE}
knitr::opts_chunk$set(echo = TRUE)
(r)
PartI
#
# 1.1 Vector
# 1. Create 2 vector, each containing 10 random numbers.
# First vector
vector1 <- sample(1:50, 10, replace = F)
# Second vector
vector2 <- sample (51:100, 10, replace = F)
# Printing the vectors
print (vector1)
print (vector2)
{r}
# 2. Append the second vector to the first one.
vector_12 <-c(vector1, vector2)
print (vector_12)
(r)
# 3. Calculate the mean of the new combined vector.
vector_mean <- mean (vector_12)
RUE'S TEIX
27
ROGRAERUGBOGBO
GROLOGROGROG
SECO
BERO GROGRGUR
NOGNDGRE
UGNEGRU
ERUGR
ROGEOLO
Transcribed Image Text:Homework help starts here! title: "HW1" author: "TESHWANI GOGINENI" date: "2023-09-20" output: html_document: df_print: paged pdf_document: default word_document: default {r setup, include-FALSE} knitr::opts_chunk$set(echo = TRUE) (r) PartI # # 1.1 Vector # 1. Create 2 vector, each containing 10 random numbers. # First vector vector1 <- sample(1:50, 10, replace = F) # Second vector vector2 <- sample (51:100, 10, replace = F) # Printing the vectors print (vector1) print (vector2) {r} # 2. Append the second vector to the first one. vector_12 <-c(vector1, vector2) print (vector_12) (r) # 3. Calculate the mean of the new combined vector. vector_mean <- mean (vector_12) RUE'S TEIX 27 ROGRAERUGBOGBO GROLOGROGROG SECO BERO GROGRGUR NOGNDGRE UGNEGRU ERUGR ROGEOLO
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Essentials Of Investments
Essentials Of Investments
Finance
ISBN:
9781260013924
Author:
Bodie, Zvi, Kane, Alex, MARCUS, Alan J.
Publisher:
Mcgraw-hill Education,
FUNDAMENTALS OF CORPORATE FINANCE
FUNDAMENTALS OF CORPORATE FINANCE
Finance
ISBN:
9781260013962
Author:
BREALEY
Publisher:
RENT MCG
Financial Management: Theory & Practice
Financial Management: Theory & Practice
Finance
ISBN:
9781337909730
Author:
Brigham
Publisher:
Cengage
Foundations Of Finance
Foundations Of Finance
Finance
ISBN:
9780134897264
Author:
KEOWN, Arthur J., Martin, John D., PETTY, J. William
Publisher:
Pearson,
Fundamentals of Financial Management (MindTap Cou…
Fundamentals of Financial Management (MindTap Cou…
Finance
ISBN:
9781337395250
Author:
Eugene F. Brigham, Joel F. Houston
Publisher:
Cengage Learning
Corporate Finance (The Mcgraw-hill/Irwin Series i…
Corporate Finance (The Mcgraw-hill/Irwin Series i…
Finance
ISBN:
9780077861759
Author:
Stephen A. Ross Franco Modigliani Professor of Financial Economics Professor, Randolph W Westerfield Robert R. Dockson Deans Chair in Bus. Admin., Jeffrey Jaffe, Bradford D Jordan Professor
Publisher:
McGraw-Hill Education