You can take the middle 4 characters of a string in one column and place them in another column in R using the following code:
326 chars10 lines
This code will extract the middle 4 characters from the original_string
column and place them in a new column called new_column
in the dataframe df
.
gistlibby LogSnag