par10 {ppRank} | R Documentation |
par10 Function
Description
This function reads a CSV file containing a matrix of values and modifies it as follows: If a value in the matrix is 0, it is replaced by 10 times the maximum non-zero value in the corresponding row.
Usage
par10(G_file, has_header = FALSE)
Arguments
G_file |
The path to the CSV file containing the matrix of values. |
has_header |
Logical, indicating if the CSV file has a header row. Default is FALSE. |
Value
A matrix where each 0 value is replaced by 10 times the maximum non-zero value in its corresponding row.
Examples
par10_result <- par10(system.file("extdata", "R.csv", package = "ppRank"), has_header = TRUE)
[Package ppRank version 0.1.0 Index]