Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ mabacR Public

❗ This is a read-only mirror of the CRAN R package repository. mabacR — Assisting Decision Makers. Homepage: https://github.com/slabaverse/mabacR Report bugs for this package: https://github.com/slabaverse/mabacR/issues

Notifications You must be signed in to change notification settings

cran/mabacR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mabacR

mabacR is an R package that executes the mathematical algorithms that make up the MABAC method, a multi-criteria decision-making method. The package normalizes the data, applies weights, determines the border area, calculates distances to this area, and finally generates a ranking with the optimal option.

Installation

You can install the package directly from GitHub using the devtools package. Run the following command in R:

# Install devtools if you haven't already
install.packages("devtools")

# Install mabacR from GitHub
devtools::install_github("https://github.com/slabaverse/mabacR.git")

Usage

Main Function

mabacR(mabac_df)

Description

The mabacR function accepts a dataset that must contain, necessarily in this order:

  1. A column with the criteria.
  2. A column with the weights (which must sum to 1).
  3. A column with the types (1 for maximization and -1 for minimization).
  4. And the columns with the evaluated items.

Parameters

  • mabac_df: The original dataset.

Return

The function returns a ranking with the optimal choice according to your criteria, weights, and types of criteria.

Example

# Example usage of the mabacR function
data(mabac_df) # Load your dataset
output <- mabacR(mabac_df) # Run the function
print(output) # Print the resulting ranking

Contribution

Contributions are welcome! Feel free to open issues or pull requests.

License

This package is licensed under the MIT License.

Contact

If you have any questions, feel free to reach out:

About

❗ This is a read-only mirror of the CRAN R package repository. mabacR — Assisting Decision Makers. Homepage: https://github.com/slabaverse/mabacR Report bugs for this package: https://github.com/slabaverse/mabacR/issues

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages