Learn R Programming

BayesianFROC (version 1.0.0)

seq_array_ind: Makes a Matrix from a vector of itegers

Description

To make sbc funtion

Usage

seq_array_ind(d, col_major = FALSE)

Arguments

d

A vector of integers

col_major

A logical, whether,.... ?

Value

A matrix, dimension is prod(d) times length(d).

Examples

Run this code
# NOT RUN {
  a <- seq_array_ind(1:3,col_major = TRUE)
#> a
#
#       [,1] [,2] [,3]
# [1,]    1    1    1
# [2,]    1    2    1
# [3,]    1    1    2
# [4,]    1    2    2
# [5,]    1    1    3
# [6,]    1    2    3






b<-seq_array_ind(1:3,col_major = FALSE)


# }

Run the code above in your browser using DataLab