There is a function format_csv in package readr, which outputs csv formated output to string. It can be used as
to_console<-function(dta){
cat(readr::format_csv(dta))
}
dta |> someoperation() |> to_console()
There is a function format_csv in package readr, which outputs csv formated output to string. It can be used as
to_console<-function(dta){
cat(readr::format_csv(dta))
}
dta |> someoperation() |> to_console()
2 Comments
morcution@lemmy.world · 4 pts · 3y
I use
clipr::write_clipandclipr::read_clip- can paste to excel but also read in something you've copied from excel.Helpful when you have a client with poorly formatted excel files, to the point that
readxlwon't do the job ðŸ˜boredScientist@feddit.nl · 2 pts · 3y
Seconding clipr, it's my go-to for when i just need to quickly check or transferring something to and from Excel.