题目
题目

BTRY3010/BTRY5010/STSCI2200/STSCI5200 Pre - Discussion #11

简答题

  Suppose you are given the following code: x <- 1:26 mat <- matrix( x , nrow=7 ) dim( mat ) What would be the second component of dim( mat )?

查看解析

查看解析

标准答案
Please login to view
思路分析
The question sets up an R vector and constructs a matrix from it. First, x <- 1:26 creates a numeric vector of length 26 containing 1, 2, ..., 26. Next, mat <- matrix(x, nrow=7) asks R to shape the data int......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!