To debug this kind of problem you really need to use dput() to provide the data
in your email. [1]
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---
Sent from my phone. Please excuse my brevity.
On September 20, 2015 12:03:54 AM PDT, "Alexander Moßbrucker"
wrote:
>Hi,
>
>I am using adehabitatHS for habitat selection analysis using widesII(),
>when
>running the script I get the error message: Error in as.vector(X) %*%
>t(as.vector(Y)) : non-conformable arguments
>
>Here the script I am using including the data
>
>> #dataset (read from tab deliminated text file)
>>
>> available
>Riparian Conifer MtShrub1 Aspen RockOutcrop Bitterbrush Windblown
>MtShrub2
>PresBurn
>1 0.060.13 0.16 0.150.060.17 0.12
>0.04
>0.09
> Clearcut
>1 0.02
>> used
> Riparian Conifer MtShrub1 Aspen RockOutcrop Bitterbrush Windblown
>MtShrub2 PresBurn
>Ani10 00 2 0 16 5
>14 28
>Ani20 21 2 2 510
>10 35
>Ani30 12 1 0 14 9
>8 40
>Ani40 13 7 5 3 6
>9 31
>Ani50 02 2 5 1810
>6 25
>Ani60 21 4 2 7 6
>15 19
> Clearcut
>Ani18
>Ani29
>Ani34
>Ani49
>Ani50
>Ani6 19
>>
>> #analysis
>>
>> widesII(used, available, avknown = TRUE, alpha = 0.05)
>Error in as.vector(X) %*% t(as.vector(Y)) : non-conformable arguments
>
>Note: I am using an example dataset to test out a script I want to use
>to
>analyse my own dataset, for this I exported the example dataset to
>excel,
>converted it to tab deliminated text file, then imported it.
>
>All worked well when using the example dataset provided by
>adehabitatHS,
>thus I suspect that somhow my test dataset is not correctly read in or
>something similar.
>
>I am quite new to R, thus apologize for any shortcomings in reporting
>etc..
>
>Many thanks, best, Alex
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/ERROR-non-conformable-arguments-tp4712516.html
>Sent from the R help mailing list archive at Nabble.com.
>
> [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.