Skip to content

MarcoDVisser/FDPtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDPtools

Optimized tools for working with forest dynamics plot data. The package is an attempt to create many optimized analytical tools for calculating statistics of interest from forest dynamics plot data. Tools range from spatail tools such as distance calculation to Bayesian variable selection and inverse modelling. The package is currently under development and contains source code in C that has only been tested under linux. Windows users should take care.

Installation

You can download the [development version of FDPtools] (https://github.com/MarcoDVisser/FDPtools) as zip or tar ball. Then R CMD INSTALL on it, or use the devtools package to install the development version:

## Make sure your current packages are up to date
update.packages()
## devtools is required
library(devtools)
install_github("FDPtools", "MarcoDVisser")

As the package depends on compiled code, Microsoft Windows users will need to install Rtools first.

Examples

# Make spatial data
require(FDPtools)
x1<-runif(10000)
y1<-runif(10000)
x2<-runif(1000)
y2<-runif(1000)
#pure R way to calculate distance
a <- matrix(ncol=1000,nrow=1000)
system.time(for(i in 1:100) a[i,]<-sqrt((x1[i]-x2)^2 + (y1[i]-y2)^2))
#using FDPtools
system.time(b<-calcDist(x1,y1,x2,y2))

Bugs

##Contact

About

Tools for working with forest dynamics plot data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published