2
我試圖找到答案,但我經常失敗。我有一個字符串列的數據框。我想計算列的每個條目中的字符數,並用計數替換字符串列。Match.fun錯誤(樂趣)
data[,29]=apply(data[,29],nchar())
Out[2]: Error in match.fun(FUN): argument "FUN" is missing, with no default
Error in match.fun(FUN): argument "FUN" is missing, with no default