Commit 099d2940 by Christelle Melodelima

remove dependancy to matlib

parent a7d9dea9
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
.RData .RData
.Ruserdata .Ruserdata
inst/doc inst/doc
.DS_Store
...@@ -9,7 +9,6 @@ Description: More about what it does (maybe more than one line) ...@@ -9,7 +9,6 @@ Description: More about what it does (maybe more than one line)
License: What license is it under? License: What license is it under?
Encoding: UTF-8 Encoding: UTF-8
LazyData: true LazyData: true
Imports: matlib
RoxygenNote: 6.0.1 RoxygenNote: 6.0.1
Suggests: knitr, Suggests: knitr,
rmarkdown rmarkdown
......
...@@ -6,4 +6,3 @@ S3method(print,pm) ...@@ -6,4 +6,3 @@ S3method(print,pm)
export(mcor) export(mcor)
export(mvar) export(mvar)
export(pm) export(pm)
import(matlib)
...@@ -15,3 +15,4 @@ LaTeX: pdfLaTeX ...@@ -15,3 +15,4 @@ LaTeX: pdfLaTeX
BuildType: Package BuildType: Package
PackageUseDevtools: Yes PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace,vignette
#' @title ProcMod #' @title ProcMod
#' @description blabla #' @description blabla
#' @author Christelle Gonindard-Melodelima #' @author Christelle Gonindard-Melodelima
#' @import matlib
#' #'
NULL
require(matlib)
#' Compute the variance, covariance matrix of K coordinate matrices. #' Compute the variance, covariance matrix of K coordinate matrices.
#' #'
...@@ -132,7 +130,7 @@ pm = function (model,data) { ...@@ -132,7 +130,7 @@ pm = function (model,data) {
SIMPLIFY = FALSE) SIMPLIFY = FALSE)
if (length(xx.cov)>1) if (length(xx.cov)>1)
ixx.cov=inv(xx.cov) ixx.cov=solve(xx.cov)
else else
ixx.cov=1/xx.cov ixx.cov=1/xx.cov
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment