strs_expandtabs replaces each tab character (\\t) in a string with aspecified number of spaces. This function behaves similarly to Python'sstr.expandtabs() method.
Usage
strs_expandtabs(string, tabsize=8)
Arguments
string
A character vector where each element is a string in which toexpand tabs.
tabsize
An integer specifying the number of spaces to replace each tabcharacter with. Defaults to 8.
Value
A character vector of the same length asstring, with tabs in eachelement replaced bytabsize number of spaces.