I have data frame called load4 and column called "Loan.Length" which contains data like
"36 months" ,"36 months", "60 months" , "36 months" , "36 months" , "36 months"
i want to remove the white spaces in between them
i have tried
1.
str_replace( " ", "", load4$Loan.Length)
2.
trimws(load4$Loan.Length, which = c("both"))
3.
trim.whitespace(load4$Loan.Length)
trim.whitespace(load4$Loan.Length)
it has no error but the data remains the same :
"36 months", "36 months" ,"60 months", "36 months", "36 months", "36 months", "36 months"