RetroFed Forum
Your home away from modern life.
print to console tables that can be easily copied and pasted to Excel
Post Reply
AuthorMessage
CthulhuDreamer lemmy.world CthulhuDreamer@lemmy.world
Joined: 2023-06-17
Quote

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()
1   Original
Post Reply
Back to top