R-str_pad
格式:str_pad(string,length,string_local,char)
length:填补之后的字符串长度 #length(string)查看之前长度
string_local:“left”/“rIght”/“both” #填补字符串的位置
char:“0”/" "/… #填补字符串长度
之前搜索到填补位置和填补字符参数位置相反,不能使用
大概r语言和其他语言str_pad使用参数搞混了
格式:str_pad(string,length,string_local,char)
length:填补之后的字符串长度 #length(string)查看之前长度
string_local:“left”/“rIght”/“both” #填补字符串的位置
char:“0”/" "/… #填补字符串长度
之前搜索到填补位置和填补字符参数位置相反,不能使用
大概r语言和其他语言str_pad使用参数搞混了