right_format | R Documentation |
checks whether a file contains the right number of columns and/or the right column names
right_format( file_path, columns_to_check, delim = "\t", skip = 0, wrong_message = "does not have the proper format \n", rigth_message = "", logical = F )
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 |
a string informing the user whether a file format is the required one
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.