Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have programming question in R Studio: Now build biggm3 by (i) initializing an empty matrix of appropriate dimension, and (ii) looping 100 times and

I have programming question in R Studio:

Now build biggm3 by (i) initializing an empty matrix of appropriate dimension, and (ii) looping 100 times and inserting gm3 into successive layers of biggm3. You may find the following R function useful:

layerInds <- function(layerNum,nrow) { ((layerNum-1)*nrow + 1):(layerNum*nrow) } # Example use: inds <- layerInds(layer=1,nrow=nrow(gapminder)) range(inds) 

This is my sample code:

y <- data.frame(a = c(1,2,3,4,5), b = c(6,7,8,9,10), c = c(11,12,13,14,15))

gm3 <- as.matrix(y)

gm3

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions