Skip to content

Commit

Permalink
version 1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Clement Calenge authored and gaborcsardi committed May 4, 2009
1 parent db25461 commit 96040fe
Show file tree
Hide file tree
Showing 165 changed files with 29 additions and 19 deletions.
Empty file modified .Rbuildindex.8939 100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions DESCRIPTION
@@ -1,16 +1,16 @@
Package: adehabitat
Version: 1.8.3
Version: 1.8.4
Date: 2009/05/04
Title: Analysis of habitat selection by animals
Author: Clement Calenge, contributions from Mathieu Basille, Stephane
Dray and Scott Fortmann-Roe
Maintainer: Clement Calenge <clement.calenge@oncfs.gouv.fr>
Depends: R (>= 2.7.0), ade4
Depends: R (>= 2.10.0), ade4
Suggests: gpclib, sp, spatstat, MASS, tkrplot, shapefiles, CircStats
Description: A collection of tools for the analysis of habitat
selection by animals
License: GPL (>= 2)
URL: https://www.faunalia.it/animove/trac/
Packaged: 2009-05-04 13:19:21 UTC; calenge
Packaged: 2011-03-18 13:46:16 UTC; calenge
Repository: CRAN
Date/Publication: 2009-05-04 15:35:43
Date/Publication: 2011-03-19 06:18:30
Empty file modified INDEX 100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions R/debut.r
@@ -1,12 +1,12 @@
##### Chargement de base

.First.lib <- function(lib, pkg) {
msg <- paste("This package requires ade4 to be installed\n\n", "Type:\n",
"demo(rastermaps) for demonstration of raster map analysis\n",
"demo(homerange) for demonstration of home-range estimation\n",
"demo(managltraj) for demonstration of animals trajectory management\n",
"demo(analysisltraj) for demonstration of animals trajectory analysis\n",
"demo(nichehs) for demonstration of niche/habitat selection analysis\n\n", sep="")
msg <- paste("Be careful: it is now recommended to use the new",
"packages adehabitatMA, adehabitatLT, adehabitatHR, and adehabitatHS.\n",
"These 4 packages are intended to become the future of adehabitat.\n",
"The \"classical\" version of adehabitat will still be maintained for some\n",
"time, but no new method will be added to the package.\n",
sep="")
cat(msg)
require(ade4)
require(gpclib)
Expand Down
Empty file modified R/engen2008.r 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions R/mcp.r
Expand Up @@ -10,10 +10,10 @@
stop("At least 5 relocations are required to fit an home range")

## First remove the missing values
xy<-xy[!is.na(xy[,1]),]
xy<-xy[!is.na(xy[,2]),]
id<-id[!is.na(xy[,1])]
id<-id[!is.na(xy[,2])]
xy<-xy[!is.na(xy[,1]),]
xy<-xy[!is.na(xy[,2]),]
id<-factor(id)

## Computes the centroid of the relocations for each animal
Expand Down
Binary file modified data/albatross.rda 100755 → 100644
Binary file not shown.
Binary file modified data/bauges.rda 100755 → 100644
Binary file not shown.
Binary file modified data/bear.rda 100755 → 100644
Binary file not shown.
Binary file modified data/bighorn.rda 100755 → 100644
Binary file not shown.
Binary file modified data/capreochiz.rda 100755 → 100644
Binary file not shown.
Binary file modified data/capreotf.rda 100755 → 100644
Binary file not shown.
Binary file modified data/chamois.rda 100755 → 100644
Binary file not shown.
Binary file modified data/hseal.rda 100755 → 100644
Binary file not shown.
Binary file modified data/ibex.rda 100755 → 100644
Binary file not shown.
Binary file modified data/ibexraw.rda 100755 → 100644
Binary file not shown.
Binary file modified data/lynxjura.rda 100755 → 100644
Binary file not shown.
Binary file modified data/mouflon.rda 100755 → 100644
Binary file not shown.
Binary file modified data/pheasant.rda 100755 → 100644
Binary file not shown.
Binary file modified data/porpoise.rda 100755 → 100644
Binary file not shown.
Binary file modified data/puech.rda 100755 → 100644
Binary file not shown.
Binary file modified data/puechabon.rda 100755 → 100644
Binary file not shown.
Binary file modified data/puechcirc.rda 100755 → 100644
Binary file not shown.
Binary file modified data/puechdesIII.rda 100755 → 100644
Binary file not shown.
Binary file modified data/rupicabau.rda 100755 → 100644
Binary file not shown.
Binary file modified data/squirrel.rda 100755 → 100644
Binary file not shown.
Binary file modified data/squirreloc.rda 100755 → 100644
Binary file not shown.
Binary file modified data/teal.rda
Binary file not shown.
Binary file modified data/vanoise.rda 100755 → 100644
Binary file not shown.
Binary file modified data/whale.rda 100755 → 100644
Binary file not shown.
Empty file modified man/Chi.Rd 100644 → 100755
Empty file.
Empty file modified man/Extract.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/NNCH.Rd 100644 → 100755
Empty file.
Empty file modified man/NNCH.area.Rd 100644 → 100755
Empty file.
Empty file modified man/NNCH.select.Rd 100644 → 100755
Empty file.
Empty file modified man/adehabitat-package.Rd 100644 → 100755
Empty file.
Empty file modified man/albatross.Rd 100644 → 100755
Empty file.
Empty file modified man/altr.Rd 100644 → 100755
Empty file.
Empty file modified man/angles.Rd 100644 → 100755
Empty file.
Empty file modified man/area2asc.Rd 100644 → 100755
Empty file.
Empty file modified man/area2dxf.Rd 100644 → 100755
Empty file.
Empty file modified man/as.area.Rd 100644 → 100755
Empty file.
Empty file modified man/as.kasc.Rd 100644 → 100755
Empty file.
Empty file modified man/as.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/as.sahrlocs.Rd 100644 → 100755
Empty file.
Empty file modified man/as.traj.Rd 100644 → 100755
Empty file.
Empty file modified man/asc2im.Rd 100644 → 100755
Empty file.
Empty file modified man/ascgen.Rd 100644 → 100755
Empty file.
Empty file modified man/bauges.Rd 100644 → 100755
Empty file.
Empty file modified man/bear.Rd 100644 → 100755
Empty file.
Empty file modified man/bighorn.Rd 100644 → 100755
Empty file.
Empty file modified man/biv.test.Rd 100644 → 100755
Empty file.
Empty file modified man/buffer.Rd 100644 → 100755
Empty file.
Empty file modified man/burst.Rd 100644 → 100755
Empty file.
Empty file modified man/c.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/capreochiz.Rd 100644 → 100755
Empty file.
Empty file modified man/capreotf.Rd 100644 → 100755
Empty file.
Empty file modified man/chamois.Rd 100644 → 100755
Empty file.
Empty file modified man/clusthr.Rd 100644 → 100755
Empty file.
Empty file modified man/colasc.Rd 100644 → 100755
Empty file.
Empty file modified man/compana.Rd 100644 → 100755
Empty file.
Empty file modified man/convnum.Rd 100644 → 100755
Empty file.
Empty file modified man/count.points.id.Rd 100644 → 100755
Empty file.
Empty file modified man/cutltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/distfacmap.Rd 100644 → 100755
Empty file.
Empty file modified man/domain.Rd 100644 → 100755
Empty file.
Empty file modified man/dunnfa.Rd 100644 → 100755
Empty file.
Empty file modified man/eisera.Rd 100644 → 100755
Empty file.
Empty file modified man/enfa.Rd 100644 → 100755
Empty file.
Empty file modified man/engen2008II.Rd 100644 → 100755
Empty file.
Empty file modified man/explore.kasc.Rd 100644 → 100755
Empty file.
Empty file modified man/findmaxasc.Rd 100644 → 100755
Empty file.
Empty file modified man/fpt.Rd 100644 → 100755
Empty file.
Empty file modified man/gdltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/getXYcoords.Rd 100644 → 100755
Empty file.
Empty file modified man/getascattr.Rd 100644 → 100755
Empty file.
Empty file modified man/getcontour.Rd 100644 → 100755
Empty file.
Empty file modified man/gnesfa.Rd 100644 → 100755
Empty file.
Empty file modified man/hbrown.Rd 100644 → 100755
Empty file.
Empty file modified man/hist.kasc.Rd 100644 → 100755
Empty file.
Empty file modified man/hist.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/histniche.Rd 100644 → 100755
Empty file.
Empty file modified man/hr.rast.Rd 100644 → 100755
Empty file.
Empty file modified man/hseal.Rd 100644 → 100755
Empty file.
Empty file modified man/ibex.Rd 100644 → 100755
Empty file.
Empty file modified man/ibexraw.Rd 100644 → 100755
Empty file.
Empty file modified man/image.asc.Rd 100644 → 100755
Empty file.
Empty file modified man/image.sahrlocs.Rd 100644 → 100755
Empty file.
Empty file modified man/import.asc.Rd 100644 → 100755
Empty file.
Empty file modified man/indmove.Rd 100644 → 100755
Empty file.
Empty file modified man/is.regular.Rd 100644 → 100755
Empty file.
Empty file modified man/is.sd.Rd 100644 → 100755
Empty file.
Empty file modified man/join.asc.Rd 100644 → 100755
Empty file.
Empty file modified man/kasc2df.Rd 100644 → 100755
Empty file.
Empty file modified man/kasc2spixdf.Rd 100644 → 100755
Empty file.
Empty file modified man/kernelUD.Rd 100644 → 100755
Empty file.
Empty file modified man/kernelbb.Rd 100644 → 100755
Empty file.
Empty file modified man/kernelkc.Rd 100644 → 100755
Empty file.
Empty file modified man/kerneloverlap.Rd 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion man/kselect.Rd 100644 → 100755
Expand Up @@ -86,7 +86,7 @@ kselect(dudi, factor, weight, scannf = TRUE, nf = 2, ewa = FALSE)
(iii) the barplot of the eigenvalues of the analysis (each eigenvalue
measure the mean marginality explained by the axis; (iv) the
projection of the non-recentred marginality vectors on the factorial
plane (the origin of the arrow indicates the average used habitat
plane (the origin of the arrow indicates the average available habitat
conditions, and the end of the arrow indicates the average used
conditions); (v) the projection of the resource units available to
each animal on the first factorial plane and (vi) the coordinates of
Expand Down
Empty file modified man/kver.Rd 100644 → 100755
Empty file.
Empty file modified man/labcon.Rd 100644 → 100755
Empty file.
Empty file modified man/lowres.Rd 100644 → 100755
Empty file.
Empty file modified man/lynxjura.Rd 100644 → 100755
Empty file.
Empty file modified man/madifa.Rd 100644 → 100755
Empty file.
Empty file modified man/mahasuhab.Rd 100644 → 100755
Empty file.
Empty file modified man/managNAkasc.Rd 100644 → 100755
Empty file.
Empty file modified man/mcp.Rd 100644 → 100755
Empty file.
Empty file modified man/mcp.rast.Rd 100644 → 100755
Empty file.
Empty file modified man/mindistkeep.Rd 100644 → 100755
Empty file.
Empty file modified man/modpartltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/morphology.Rd 100644 → 100755
Empty file.
Empty file modified man/mouflon.Rd 100644 → 100755
Empty file.
Empty file modified man/niche.test.Rd 100644 → 100755
Empty file.
Empty file modified man/offsetdate.Rd 100644 → 100755
Empty file.
Empty file modified man/perarea.Rd 100644 → 100755
Empty file.
Empty file modified man/pheasant.Rd 100644 → 100755
Empty file.
Empty file modified man/plot.area.Rd 100644 → 100755
Empty file.
Empty file modified man/plot.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/plot.sahrlocs.Rd 100644 → 100755
Empty file.
Empty file modified man/plotltr.Rd 100644 → 100755
Empty file.
Empty file modified man/porpoise.Rd 100644 → 100755
Empty file.
Empty file modified man/predict.enfa.Rd 100644 → 100755
Empty file.
Empty file modified man/puech.Rd 100644 → 100755
Empty file.
Empty file modified man/puechabon.Rd 100644 → 100755
Empty file.
Empty file modified man/puechcirc.Rd 100644 → 100755
Empty file.
Empty file modified man/puechdesIII.Rd 100644 → 100755
Empty file.
Empty file modified man/qqchi.Rd 100644 → 100755
Empty file.
Empty file modified man/rand.kselect.Rd 100644 → 100755
Empty file.
Empty file modified man/randtest.enfa.Rd 100644 → 100755
Empty file.
Empty file modified man/redisltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/rotxy.Rd 100644 → 100755
Empty file.
Empty file modified man/rupicabau.Rd 100644 → 100755
Empty file.
Empty file modified man/sahrlocs2kselect.Rd 100644 → 100755
Empty file.
Empty file modified man/sahrlocs2niche.Rd 100644 → 100755
Empty file.
Empty file modified man/scatter.enfa.Rd 100644 → 100755
Empty file.
Empty file modified man/scatterniche.Rd 100644 → 100755
Empty file.
Empty file modified man/schoener.Rd 100644 → 100755
Empty file.
Empty file modified man/set.limits.Rd 100644 → 100755
Empty file.
Empty file modified man/setNA.Rd 100644 → 100755
Empty file.
Empty file modified man/setmask.Rd 100644 → 100755
Empty file.
Empty file modified man/sett0.Rd 100644 → 100755
Empty file.
Empty file modified man/showNAltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.bb.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.brown.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.crw.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.levy.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.mba.Rd 100644 → 100755
Empty file.
Empty file modified man/simm.mou.Rd 100644 → 100755
Empty file.
Empty file modified man/sliwinltr.Rd 100644 → 100755
Empty file.
Empty file modified man/speed.Rd 100644 → 100755
Empty file.
Empty file modified man/squirrel.Rd 100644 → 100755
Empty file.
Empty file modified man/squirreloc.Rd 100644 → 100755
Empty file.
Empty file modified man/storemapattr.Rd 100644 → 100755
Empty file.
Empty file modified man/subsample.Rd 100644 → 100755
Empty file.
Empty file modified man/subsetmap.Rd 100644 → 100755
Empty file.
Empty file modified man/teal.Rd 100644 → 100755
Empty file.
Empty file modified man/trajdyn.Rd 100644 → 100755
Empty file.
Empty file modified man/typeII2typeI.Rd 100644 → 100755
Empty file.
Empty file modified man/vanoise.Rd 100644 → 100755
Empty file.
Empty file modified man/wawotest.Rd 100644 → 100755
Empty file.
Empty file modified man/whale.Rd 100644 → 100755
Empty file.
Empty file modified man/which.ltraj.Rd 100644 → 100755
Empty file.
Empty file modified man/wi.Rd 100644 → 100755
Empty file.
22 changes: 16 additions & 6 deletions src/tests.c
Expand Up @@ -5281,7 +5281,7 @@ void regroufacasc(double **asce, double **ascs, int *np,
{
/* declaration of variables */
int i, j, k, l, m, dr, fr, dc, fc, nre, nrs;
int nce, ncs, nl, *ll, max, vm, na, *vecmax;
int nce, ncs, nl, *ll, max, vm, na, *vecmax, *vecmaxind;

/* Memory allocation */
nre = asce[0][0];
Expand Down Expand Up @@ -5321,7 +5321,7 @@ void regroufacasc(double **asce, double **ascs, int *np,
/* One computes the maximum number */
vm = ll[1];
for (k = 2; k <= nl; k++) {
if (ll[k] >= vm) {
if (ll[k] > vm) {
vm = ll[k];
}
}
Expand All @@ -5336,19 +5336,27 @@ void regroufacasc(double **asce, double **ascs, int *np,

/* one identifies the levels for which the number is max */
vecintalloc(&vecmax, max);
vecintalloc(&vecmaxind, max);
for (l=1; l <=max; l++) {
vecmaxind[l] = l;
}

l = 1;
for (k = 1; k<=nl; k++) {
if (ll[k] == vm) {
vecmax[1] = k;
vecmax[l] = k;
l++;
}
}

/* Random sample of the levels in case of equality */
if (max > 1) {
getpermutation(vecmax, i*j); /* random row */
if (max > 1) {
getpermutation(vecmaxind, i*j); /* random row */
}
ascs[i][j] = (double) vecmax[1];
ascs[i][j] = (double) vecmax[vecmaxind[1]];
freeintvec(vecmax);
freeintvec(vecmaxind);

} else {
ascs[i][j] = -9999;
}
Expand Down Expand Up @@ -6197,6 +6205,8 @@ void udbbnoeud(double *XG, double **XY, double *T, double *sig1,
integrno(XG, Xtmp1, Xtmp2, &dt, sig1, sig2, alpha, &tmp);
*res = *res + (poids * tmp);
}
freevec(Xtmp1);
freevec(Xtmp2);
}


Expand Down

0 comments on commit 96040fe

Please sign in to comment.