Learn R Programming

PRA (version 0.3.0)

parent_dsm: Resource-based 'Parent' Design Structure Matrix (DSM).

Description

Resource-based 'Parent' Design Structure Matrix (DSM).

Usage

parent_dsm(S)

Value

The function returns the Resource-based 'Parent' DSM 'P' giving the number of resources shared between each task.

Arguments

S

Resource-Task Matrix 'S' giving the links (arcs) between resources and tasks.

Examples

Run this code
# Set the S matrix for a toy project and print the results.
s <- matrix(c(1, 1, 0, 0, 1, 0, 0, 1, 1), nrow = 3, ncol = 3)
cat("Resource-Task Matrix:\n")
print(s)

# Calculate the Resource-based Parent DSM and print the results.
resource_dsm <- parent_dsm(s)
cat("\nResource-based 'Parent' DSM:\n")
print(resource_dsm)

Run the code above in your browser using DataLab