right_format: checks whether a file contains the right number of columns...

right_formatR Documentation

checks whether a file contains the right number of columns and/or the right column names

Description

checks whether a file contains the right number of columns and/or the right column names

Usage

right_format(
  file_path,
  columns_to_check,
  delim = "\t",
  skip = 0,
  wrong_message = "does not have the proper format \n",
  rigth_message = "",
  logical = F
)

Arguments

file_path,

path to a file of interest

columns_to_check,

either a list of columns name or the number of columns that are supposed to be in the file

delim,

delimiter for read_delim

skip,

number of rows to skip for read_delim

wrong_message,

message returned if the format is not the one requested

rigth_message,

message returned if the format is requested one

Value

a string informing the user whether a file format is the required one


CL-CHEN-Lab/User_interface_for_Kronos_scRT documentation built on Aug. 1, 2022, 2:08 p.m.