2012-11-26 8 views

Odpowiedz

5

Można, z tym kodem:

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

Poza użytkownika @ MatthewLundberg odpowiedź, można ustawić i uzyskać indywidualne atrybuty jak:

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


> attr(epsilon0,"name") 
[1] "electric constant" 
Powiązane problemy