0

I have a string like this "HsdkjnsjHlksmH". In the string, I want to replace only the second by a 'Q'.

I know this code sub("H*.H", "Q", s) can do it. But, I can't understand what the H*.H mean here.

Could someone explain please. I'm very new to R.

thileepan
  • 619
  • 3
  • 8
  • 18

0 Answers0