Open flor14 opened 1 week ago
@flor14 - can you provide a checklist of possible functions to add such as the following that I could quickly overview and then select the ones that make sense?
chk_raw()
chk_complex()
chk_nan()
chk_raw
chk_bytes
(The raw data type is used to store raw bytes of data. Individual bytes are represented in hexadecimal format, it could (or not) overlap with chk_hexadecimal
)chk_complex
(The complex data type represents complex numbers, which have both real and imaginary parts.)chk_im
- There are functions (Im()
and Re()
) to check if each part of a complex number exists.chk_re
chk_nan
chk_hexadecimal
chk_scientific
chk_infinite
(could be -Inf and/or Inf)
difftime
chk_difftime
chk_units
chk_tibble
I will not go into detail regarding my data.frame comment because I am still not familiar with all the functions that are part of check_data
Also, #129
chk_namespace
Hello
Here there is a first version of
chk
diagram. Part of the diagram is based on the book Advanced R.The existence of objects mentioned in Advanced R that do not currently have a corresponding
chk
function should not be the sole criterion for deciding which new functions to include in the package. The goal of this issue is to list these objects as sources of potential newchk
functions for further discussion.Both the diagram and the final comments are open to feedback and modifications.
Note: The functions highlighted in pink may be confusing. I marked them this way to remind myself to add some clarifying comments in the documentation.
What is currently not covered?
complex
andraw
don't have specific functions to check them (but they are mentioned as less frequently used).chk_*
andvld_*
functions for tibbles. Tibbles are not equal to data frames. They have a different class and can behave as specified in this section of Advanced RDurations. There are no
chk_*
andvld_*
functions for classdifftimes
.Units attribute Since the
chk_tz
function checks thetz
attribute of thePOSIXct
class, a similarchk_*
andvld_*
function could be developed to check theunits
attribute of thedifftime
class.Double
data type scalars There are some scalars for data typedouble
that don't have specific functions to check them:hexadecimal
,NaN
,Inf
,-Inf
,Scientific
.More functions for
data.frames
length()
may not be intuitive fordata.frames
.