rearrange_mat: Rearranges the given matrix

Description Usage Arguments Details Value Author(s)

View source: R/iRoCoDe.R

Description

The rearrange_mat function rearranges the column elements of a given 'a_matrix'.

Usage

1
rearrange_mat(a_matrix, treatments)

Arguments

a_matrix

A a_matrix of the first design (D1)

treatments

The number of treatments of the second design (D2)

Details

This function reads an 'a_matrix' (A) generated from two designs (D1 and D2) and rearranges the column elements based on the treatments numbers in the second design (D2). It iteratively rearrange the items row-wise until the new A is generated with each row containing all the treatments of D2 exaclty once.

Value

It returns new 'a_matrix' (A) with each row containing all the treatments of D2 exaclty once.

Author(s)

1) Sayantani Karmakar 2) Md. Ashraful Haque 3) Cini Varghese 4) Seema Jaggi 5) Eldho Varghese 6) Mohd. Harun


iRoCoDe documentation built on Jan. 25, 2022, 5:08 p.m.