Learn R Programming

omicsTools (version 1.1.7)

check_and_sort_columns: Check and Sort Columns, Compare Values

Description

This function checks if two tibbles have the same column names, sorts the columns of one tibble to match the order of the other, and then checks if all values in both tibbles are the same.

Usage

check_and_sort_columns(area_data, area_txt)

Value

Prints messages indicating whether the tibbles have the same column names and whether all values are the same.

Arguments

area_data

A tibble containing the data to be checked and sorted.

area_txt

A tibble containing the reference data for column order and value comparison.

Author

Yaoxiang Li

Examples

Run this code
if (FALSE) {
area_data <- read.delim("path/to/All_txt.txt", check.names = FALSE)
area_txt <- read.delim("path/to/area.txt", check.names = FALSE)
check_and_sort_columns(area_data, area_txt)
}

Run the code above in your browser using DataLab