2012-11-26 42 views

回答

5

可以,使用此代碼:

attributes(epsilon0) <- list(name = "electric constant", source = "CODATA", unit="F m-1") 
4

除了@ MatthewLundberg的回答,您可以設置和獲取單個屬性,如:

> attr(epsilon0,"name") <- "electric constant" 
> epsilon0 
[1] 8.854188e-12 
attr(,"name") 
[1] "electric constant" 


> attr(epsilon0,"name") 
[1] "electric constant" 
相關問題