Learn R Programming

ppRank (version 0.1.1)

par10: 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)

Value

A matrix where each 0 value is replaced by 10 times the maximum non-zero value in its corresponding row.

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.

Examples

Run this code

par10_result <- par10(system.file("extdata", "R.csv", package = "ppRank"), has_header = TRUE)


Run the code above in your browser using DataLab