par10: par10 Function

View source: R/par10.R

par10R 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)



ppRank documentation built on Oct. 2, 2024, 1:08 a.m.

Related to par10 in ppRank...