BlockTrMean: Mean of transposed Data block by block

Description Usage Arguments Value

View source: R/F4.R

Description

Gives the rows mean or the columns mean of the blocks transposed data. It also gives the total mean of each transposed block. give the mean of the column or of the lines of each block or of the hole block transposed.

Gives the rows mean or the columns mean of the blocks transposed data. It also gives the total mean of each transposed block.

Usage

1
2
3
4
5
6
7
8
BlockTrMean(
  Data = data(),
  lengthBlock = integer(),
  cls = c(),
  rs = c(),
  time_col = NULL,
  Mean = character()
)

Arguments

Data

Data frame that will be imported.

lengthBlock

Nomber of rows that will be transposed for any row.

cls

Columns of the data frame that we want to transpose.

rs

The rows of the first block. Based on this rows the function will select identically the rows of every other block.

time_col

The 'time parameter' is optional. We can ignore it if our data has no time values.

Mean

Character that can take the values Row, Col or Block. Based on the option that we'll choose and the function will return the mean of the Row, Col of each block or the general mean of all the block.

Value

tibble


GlenDu/ODBbB documentation built on Dec. 17, 2021, 9:33 p.m.