n = c(2, 3, 5) s = 1 Ex [1]: combine = c(n, s) combine > 2,3,5,1 x = c( 1,2,3,4,5,6,7,8,9) Ex [2]: X = B = 10 x.t = c( x[1:9], B ) %3D %3D х.t Try Ex [1] and [2]

Calculus: Early Transcendentals
8th Edition
ISBN:9781285741550
Author:James Stewart
Publisher:James Stewart
Chapter1: Functions And Models
Section: Chapter Questions
Problem 1RCC: (a) What is a function? What are its domain and range? (b) What is the graph of a function? (c) How...
icon
Related questions
Question

I working with R code 

Combining Vectors: Please try Ex [1] and Ex[2]
Vectors can be combined via the function c. For examples, the following two vectors n and s are combined into a
new vector containing elements from both vectors.
n = c(2, 3, 5)
s = 1
Ex [1]:
combine = c(n, s)
combine
> 2,3,5,1
x = c( 1,2,3,4,5,6,7,8,9)
Ex [2]:
B = 10
x.t = c( x[1:9], B )
х.t
Try Ex [1] and [2]
Transcribed Image Text:Combining Vectors: Please try Ex [1] and Ex[2] Vectors can be combined via the function c. For examples, the following two vectors n and s are combined into a new vector containing elements from both vectors. n = c(2, 3, 5) s = 1 Ex [1]: combine = c(n, s) combine > 2,3,5,1 x = c( 1,2,3,4,5,6,7,8,9) Ex [2]: B = 10 x.t = c( x[1:9], B ) х.t Try Ex [1] and [2]
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Calculus: Early Transcendentals
Calculus: Early Transcendentals
Calculus
ISBN:
9781285741550
Author:
James Stewart
Publisher:
Cengage Learning
Thomas' Calculus (14th Edition)
Thomas' Calculus (14th Edition)
Calculus
ISBN:
9780134438986
Author:
Joel R. Hass, Christopher E. Heil, Maurice D. Weir
Publisher:
PEARSON
Calculus: Early Transcendentals (3rd Edition)
Calculus: Early Transcendentals (3rd Edition)
Calculus
ISBN:
9780134763644
Author:
William L. Briggs, Lyle Cochran, Bernard Gillett, Eric Schulz
Publisher:
PEARSON
Calculus: Early Transcendentals
Calculus: Early Transcendentals
Calculus
ISBN:
9781319050740
Author:
Jon Rogawski, Colin Adams, Robert Franzosa
Publisher:
W. H. Freeman
Precalculus
Precalculus
Calculus
ISBN:
9780135189405
Author:
Michael Sullivan
Publisher:
PEARSON
Calculus: Early Transcendental Functions
Calculus: Early Transcendental Functions
Calculus
ISBN:
9781337552516
Author:
Ron Larson, Bruce H. Edwards
Publisher:
Cengage Learning