PU
> tmp <- data.table(x = rep(1:5, each = 2), y = c('A','B'))
> tmp[, list(A = mean(x), A1 = (mean(x)), B = mean(x), B1 = (mean(x))), by = y]
y A A1 B B1
1: A 3 3 3 3
2: B 3 3 3 3
Size: a a a
PU
> tmp <- data.table(x = rep(1:5, each = 2), y = c('A','B'))
> tmp[, list(A = mean(x), A1 = (mean(x)), B = mean(x), B1 = (mean(x))), by = y]
y A A1 B B1
1: A 3 3 3 3
2: B 3 3 3 3
a
DT::datatable()
? Я хочу чтобы вот такие сайты не грузились столетиями.AC
> tmp <- data.table(x = rep(1:5, each = 2), y = c('A','B'))
> tmp[, list(A = mean(x), A1 = (mean(x)), B = mean(x), B1 = (mean(x))), by = y]
y A A1 B B1
1: A 3 3 3 3
2: B 3 3 3 3
PU
AC
AC
AC
dt[,.(A = (mean(circular(x))), B = mean(circular(x)), C = circular::mean.circular(circular(x))), by = y]
y A B C
1: A 0.6033983 1.949538 0.6033983
2: B 0.3794051 2.191128 0.3794051
АК
dt[,.(A = (mean(circular(x))), B = mean(circular(x)), C = circular::mean.circular(circular(x))), by = y]
y A B C
1: A 0.6033983 1.949538 0.6033983
2: B 0.3794051 2.191128 0.3794051
AC
э
a
э
PU
OB
э
OB
э
AM
Phi <- function(a, b)
{
r<-cov(a,b)/(var(a)*var(b))
Sr<-(1-r^2)/sqrt(length(unique(a))-1)
return(abs(r/Sr))
}
AM
А[
Phi <- function(a, b)
{
r<-cov(a,b)/(var(a)*var(b))
Sr<-(1-r^2)/sqrt(length(unique(a))-1)
return(abs(r/Sr))
}