В Mon, 3 Mar 2025 13:21:31 +0530 Christofer Bogaso <bogaso.christo...@gmail.com> пишет:
> Is there any way to remove all possible "Unicode character" that may > be present in the array at once? Define a range of characters you consider acceptable, and you'll be able to use regular expressions to remove everything else. For example, the following expression should remove everything except ASCII digits, dots, and hyphen-minus: gsub('[^0-9.-]+', '', dat2) There is a brief introduction to regular expressions in ?regex and various online resources such as <https://regex101.com/>. -- Best regards, Ivan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.