Ir al contenido

This function takes a tibble containing soil data, performs data summarization, and returns a formatted and summarized tibble.

Uso

summarizeSoil(x)

Argumentos

x

A tibble containing soil data.

Valor

A tibble with summarized soil data.

Detalles

This function performs the following steps:

  1. Removes rows with missing values.

  2. Excludes certain columns from the analysis.

  3. Calculates mean, standard deviation, and standard error for numeric columns.

  4. Pivots the data into a long format.

  5. Renames columns for clarity.

  6. Pivots the data back to a wider format.

  7. Rounds numeric columns to three decimal places.