r_programming
R Programming CthulhuDreamer 1 year ago 100%

print to console tables that can be easily copied and pasted to Excel

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()

14
2
Comments 2