Displaying 1 result from an estimated 1 matches for "060907_17_3_5_4_1_".
Did you mean:
060907_17_3_5_1_1_
2007 Sep 17
2
removing a specific number of digist from a character string
...;.tif" part works fine using
sub('.tif',"",x), but how do I get rid of the four preceding digits?
Thanks for your help,
Kim
Input:
[3988]
"060907_17_3_5_1_1_2909.tif" "060907_17_3_5_2_1_2910.tif"
"060907_17_3_5_3_1_2911.tif"
[3991]
"060907_17_3_5_4_1_2912.tif" "060907_17_3_5_5_1_2913.tif"
"060907_17_3_5_6_1_2914.tif"
Desired output:
[3988] "060907_17_3_5_1_1_" "060907_17_3_5_2_1_" "060907_17_3_5_3_1_"
[3991] "060907_17_3_5_4_1_" "060907_17_3_5_5_1_" "0609...