Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf08690d

Browse files
author
Vadim Nazarov
committed
add fix for chao1 function
1 parentcb5c8a0 commitf08690d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎R/diversity.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ chao1 <- function (.data) {
119119
# f1 != && f2 != 0
120120
else {
121121
const<- (n-1)/n
122-
e<-D+f1^2/ (2*f1)*const
122+
e<-D+f1^2/ (2*f2)*const
123123
f12<-f1/f2
124124
v<-f2* (const*f12^2/2+const^2*f12^3+const^2*f12^4/4)
125125
t<-e-D

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp