如果我在斯卡拉下面這段代碼: val prices = Map("bread" -> 4.56, "eggs" -> 2.98, "butter" -> 4.35)
prices.map((k,v) => (k, v-1.1)).toMap
我得到的錯誤: The expected type requires a one-argument function accepting a 2-Tup
這似乎是一個問題,我可以自己查看答案。不過,我目前無法訪問SAS。 我的問題是:我可以根據死亡日期和死亡年齡計算出生日期嗎? 如果我例如要選擇2012年和2013年間出生的是possbile做到以下幾點: data new_data;
set old_data;
where "01Jan2012"d le date_of_death-age le "31Dec2012"d;
run;
那