tests/testthat/_snaps/format_factor.md

output test

Code
  pillar(factor(c(letters[1:5], NA)))
Output
  <pillar>
  <fct>
  a    
  b    
  c    
  d    
  e    
  <NA> 
Code
  pillar(ordered(c(letters[1:5], NA)))
Output
  <pillar>
  <ord>
  a    
  b    
  c    
  d    
  e    
  <NA> 
Code
  pillar(factor("a\nb"))
Output
  <pillar>
  <fct> 
  "a\nb"


Try the pillar package in your browser

Any scripts or data that you put into this service are public.

pillar documentation built on July 29, 2021, 9:06 a.m.