+ len supp dose
+1 4.2 VC 0.5
+2 11.5 <NA> <NA>
+3 7.3 VC 0.5
+4 5.8 (VC 0.5
+5 6.4 VC <NA>
+6 10 VC 0.5
+7 11.2 <NA> 0.5
+8 11.2 VC 0.5
+9 5.2 VC 0.5
+10 7 VC 0.5
+You can vary the amount of messiness for each function, and chain together different functions to create customised messy data:
+
- len supp dose
-1 4.2 VC 0.5
-2 11.5 VC NA
-3 7.3 VC 0.5
-4 5.8 *VC 0.5
-5 6.4 VC 0.5
-6 10.0 VC 0.5
-7 11.2 0.5
-8 11.2 V#C NA
-9 5.2 !VC 0.5
-10 7.0 VC* 0.5
-If you’re adding messy_colnames()
to a chain (and you specify only some columns in other functions), make sure messy_colnames()
comes at the end:
-
- !l_e)n S^UPP d^o)se
-1 4.2 VC 0.5
-2 11.5 VC NA
-3 7.3 VC 0.5
-4 5.8 *VC 0.5
-5 6.4 VC 0.5
-6 10.0 VC 0.5
-7 11.2 0.5
-8 11.2 V#C NA
-9 5.2 !VC 0.5
-10 7.0 VC* 0.5
-Otherwise, the column names you try to select may no longer exist!
-