Displaying 2 results from an estimated 2 matches for "datfrm".
Did you mean:
datfra
2013 Feb 02
1
repeating autocovariate functions
...9671
(and 150 more)
To calculate the autocovariate terms my code is as follows:
library(spdep)
Taranga <- read.csv(file.choose()) #contains xy coordinates
xy <- cbind(Taranga$x, Taranga$y)
acinvb <- autocov_dist(Taranga$burrows.pa, xy, nbs=1,zero.policy = TRUE,
type="inverse")
datfrm <- data.frame(autocov=acinvb, nbs=1)
write.table(dfrm, file = 'results.csv',sep=",",row.names = FALSE)
acinva <- autocov_dist(Taranga$burrows.pa, xy, nbs=100,zero.policy = TRUE,
type="inverse")
dfrm <-data.frame(autocov=acinva, nbs=100)
names(datfrm) <-...
2012 Sep 28
2
Converting array to matrix
Hi,
I have a 3d array as below, I want to make this array to a matrix of p=50(rows) and n=20(columns) with the coverage values .
The code before the array is:
library(binom)
Loading required package: lattice
pi.seq<-seq(from = 0.01, to = 0.5, by = 0.01)
no.seq<-seq(from = 5, to = 100, by = 5)
cp.all = binom.coverage( p = pi.seq, n = no.seq , conf.level = 0.95, method = "exact")