我有要转换为数字类型的向量vec。因此,我首先需要去掉非数字(包括'+')。问题是:当我将它们排除在外时,“E+”和“E-”符号中的“+”和“-”也会被删除。如何删除除“E-”、“E+”和“.”以外的所有非数字。]', '', vec) # removes '-' and '+' in 'E-' and 'E+'
gsub('[^0-9(E\\+)
对于我最终想要实现的项目,我需要相当大的数字。// The number that shall be formatted into scientific notation var numberRelevantDigits = 0; // The digits displayed before the "e+; // Ch