1
我希望打印米平方在R,但我沒有成功。 這是我正在使用的代碼示例:打印米在R平方
bmi <- c(24,28,31)
print(paste0("Your body mass index is ", bmi, "kg/m^2"))
# [1] "Your body mass index is 24kg/m^2"
# [2] "Your body mass index is 28kg/m^2"
# [3] "Your body mass index is 31kg/m^2"
建議?
使用字符'²'? – AlexR
謝謝@AlexR –
如果我的回答對您有幫助,請接受它,以便其他人知道您不再需要該問題的答案,並且它從未答覆的列表中消失。 – AlexR