3
有沒有辦法在調用new.env()時初始化三個名稱「indian」,「pizza」和「ramen」作爲參數?R:設置環境名稱作爲參數new.env()
eats <- new.env(
indian = "8elements",
pizza = "blue line",
ramen = "orenchi")
這將是一個替代方案:
eats <- new.env()
eats$indian = "8elements"
eats$pizza = "blue line"
eats$ramen = "orenchi"