如何从R中的功能剂量p(包装质量)中提取硒?
我使用的是dose.p(来自R中的包质量)。我能提取“剂量”,但不能提取“SE” 但是有如何从R中的功能剂量p(包装质量)中提取硒?,r,R,我使用的是dose.p(来自R中的包质量)。我能提取“剂量”,但不能提取“SE” 但是有 my.p50[2] 我得到 <NA> NA NA 请帮忙 试试看 unname(attributes(my.p50)$SE[, 1]) # unname is optional [1] 1.634532 查看结构以了解要查找的位置 str(my.p50) #Class 'glm.dose' atomic [1:1] 3.15 # ..- attr(*, "SE")= num
my.p50[2]
我得到
<NA>
NA
NA
请帮忙 试试看
unname(attributes(my.p50)$SE[, 1]) # unname is optional
[1] 1.634532
查看结构以了解要查找的位置
str(my.p50)
#Class 'glm.dose' atomic [1:1] 3.15
# ..- attr(*, "SE")= num [1, 1] 1.63
# .. ..- attr(*, "dimnames")=List of 2
# .. .. ..$ : chr "p = 0.5:"
# .. .. ..$ : NULL
# ..- attr(*, "p")= num 0.5
unname(attributes(my.p50)$SE[, 1]) # unname is optional
[1] 1.634532
str(my.p50)
#Class 'glm.dose' atomic [1:1] 3.15
# ..- attr(*, "SE")= num [1, 1] 1.63
# .. ..- attr(*, "dimnames")=List of 2
# .. .. ..$ : chr "p = 0.5:"
# .. .. ..$ : NULL
# ..- attr(*, "p")= num 0.5