
Hi guys. I need help. I am studying R in Uni at the moment. Our professor gave CSV file as a part of the exercise. As you can see, after reading by the R studio, it appears to be a simple data frame with 2 columns. But there are errors in both columns. All values in each cell should be a 6-figure number. But some of them are 5-figure numbers. We are tasked to generate 2 correct columns based on them. We are supposed to add a "0" at the end of every 5-figure number to make them a 6-figure number. I assume that we are going to use the "if...else..." command here. But this command is the one I suck at. I can bearly use the "if...else..." statement in a stand-alone situation. There is no way I can combine it into a column-generating function. If you know how to do this, please let me know. Thanks very much.