Learn R Programming

ProjectManagement (version 1.5.2)

organize: Organize project activities

Description

This function organizes the activities of a project, in such a way that if i precedes j then i is less strict than j.

Usage

organize(prec1and2 = matrix(0), prec3and4 = matrix(0))

Value

A list containing:

  • Precedence: ordered precedence matrix.

  • Order: new activities values.

Arguments

prec1and2

A matrix indicating the order of precedence type 1 and 2 between the activities (Default=matrix(0)). If value \((i,j)=1\) then activity \(i\) precedes type \(1\) to \(j\), and if \((i,j)=2\) then activity \(i\) precedes type \(2\) to \(j\). Cycles cannot exist in a project, i.e. if an activity \(i\) precedes \(j\) then \(j\) cannot precede \(i\).

prec3and4

A matrix indicating the order of precedence type 3 and 4 between the activities (Default=matrix(0)). If value \((i,j)=3\) then activity \(i\) precedes type \(3\) to \(j\), and if \((i,j)=4\) then activity \(i\) precedes type \(4\) to \(j\). Cycles cannot exist in a project, i.e. if an activity \(i\) precedes \(j\) then \(j\) cannot precede \(i\).

Examples

Run this code
prec1and2<-matrix(c(0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),nrow=5,ncol=5,byrow=TRUE)
organize(prec1and2)

Run the code above in your browser using DataLab