How To Put Tab In Sprintf In R?

Use `t` inside the format string

Example: `sprintf(“NametAge”)`

Example: `sprintf(“%st%d”, “Alice”, 30)`

Use `cat()` if you want to print the result with tabs

Example: `cat(sprintf(“%st%dn”, “Alice”, 30))`

Suggested for You

Trending Today