Displaying 20 results from an estimated 42 matches for "nevil".
Did you mean:
evil
2010 May 04
7
How to replace all <NA> values in a data.frame with another ( not 0) value
I need to replace <NA> occurrences in multiple columns in a data.frame
with "000/000"
how do I achieve this?
Thanks
Nevil Amos
2012 May 20
5
removeing only rows/columns with "na" value from square ( symmetrical ) matrix.
...I end up with all rows/ columns that are not NA - e.g.
1 2 3 4 5 7 8 9
1 0 2 1 2 1 1 2 1
2 2 0 1 2 1 1 2 1
3 1 1 0 2 1 1 2 1
4 2 2 2 0 1 1 2 1
5 1 1 1 1 0 1 2 1
7 1 1 1 1 1 0 2 1
8 2 2 2 2 2 2 0 1
9 1 1 1 1 1 1 1 0
if i use na omit I lose rows 1,2,6, and 9
which is not what I want.
thanks
--
Nevil Amos
Molecular Ecology Research Group
Australian Centre for Biodiversity
Monash University
CLAYTON VIC 3800
Australia
[[alternative HTML version deleted]]
2012 Apr 10
7
How to remove $ (Dollar sign) from string
...ot;,"ABC$DEF")
[1] "ABC$DEF"
> sub("\$","","ABC$DEF")
Error: '\$' is an unrecognized escape in character string starting "\$"
> sub(\$,"","ABC$DEF")
Error: unexpected input in "sub(\"
Thanks
--
Nevil Amos
Molecular Ecology Research Group
Australian Centre for Biodiversity
Monash University
CLAYTON VIC 3800
Australia
[[alternative HTML version deleted]]
2012 Jan 21
2
replacing "+" in string
...ub("+","plus",X)
[1] "plusone + two"
> X<-"one ~ two"
it seems to work fine with other characters:
> sub("~","plus",X)
[1] "one plus two"
How do I enable "+" to be recognised as a normal character?
thanks
Nevil Amos
2011 Oct 16
2
How to plot CI's (llim ulim) on ecodist mgram
...-0.36468910 -0.341422330
[11,] 79.171152 147 -0.337181781 0.001 -0.34854961 -0.322161075
[12,] 86.711262 108 -0.334465576 0.001 -0.35500933 -0.309763543
[13,] 94.251371 43 -0.238965642 0.001 -0.26437371 -0.196038662
$resids
[1] NA
attr(,"class")
[1] "mgram"
Thanks
Nevil Amos
2013 Aug 27
1
return the name of source.
Is there a fuction that will allow me to retrun the filename for a script
from within that script.
fir instance
If I have a script "myscript.r":
FileName<-unknown.fucntion()
print(FileName)
and run it
source("myscript.r")
will return
"myscript.r"
Thanks
Nevil Amos
[[alternative HTML version deleted]]
2012 Jan 11
2
Vegan(ordistep) error: Error in if (aod[1, 5] <= Pin) { : missing value where TRUE/FALSE needed
...ariance
Some constraints were aliased because they were collinear (redundant)
Eigenvalues for unconstrained axes:
PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8
0.16008 0.14733 0.12183 0.09054 0.07380 0.06971 0.05578 0.04215
(Showed only 8 of all 29 unconstrained eigenvalues)
--
Nevil Amos
Molecular Ecology Research Group
Australian Centre for Biodiversity
Monash University
CLAYTON VIC 3800
Australia
[[alternative HTML version deleted]]
2020 Oct 31
2
raster::levels() not working in packaged function.
...<-' is not an exported object from 'namespace:raster'
I have also tried just using levels(r) and putting raster as a depends
rather than an import in the DESCRIPTION file for the package, this does
not solve the error.
Any suggestions on how to overcome the problem?
many thanks
Nevil Amos
[[alternative HTML version deleted]]
2010 Oct 12
2
repeatability/intraclass with nested levels
...measurement/observer error, compared to difference between
individuals error
I have looked at doing this with icc{irr} or using an anova approach,
but I am unclear how to acheive this given that there is a nested
structure- the value varies between wavelengths within individuals.
Many thanks
Nevil Amos
data is structured thus:
> ANWC_NO Wavelength Repeat value
> 1 00239 300 r1 0.079501
> 2 00239 302 r1 0.084113
> 3 00239 304 r1 0.087697
> 202 11157 300 r1 0.008449
> 203 11157 302...
2011 Dec 03
1
partial mantel tests in ecodist with intential NA values.
...ot; values assigned to NA.
This is possible in package ncf partial.mantel.test, however this sues a different permutation to that used in ecodist.ecodist will not accept data with NA values, returning a "matrix is not square error.
is it possible to perform this test in ecodist?
many thanks
Nevil Amos
> library(ecodist)
> library(ncf)
> x<-sample(1:1000,20)
> y<-sample(1:1000,20)
> z<-sample(1:1000,20)
> M1<-as.matrix( distance(x))
> M2 <-as.matrix( distance(y ))
> M3<-as.matrix( distance(z ))
> D1<-(lower(M1))
> D2<-(lower(M2))
> D3...
2010 Apr 29
5
reduce size of pdf
is there a way to reduce the size of pdf files in R: ?
compression?
lower dpi ?
or some other option?
2010 Sep 21
1
partial dbRDA or CCA with two distance objects in Vegan.
...h test is the
appropriate one to use ( I believe capscale since it is "similar to
distance-based redundancy analysis (Legendre & Anderson 1999)") and
whether this test is indeed equivalent to the approach suggested by
Legendre &Fortin, (Geffen et al used DISTLM).
many thanks
Nevil Amos
ACB
Monash University
references
(Geffen, E., M. J. Anderson, et al. (2004). "Climate and habitat
barriers to dispersal in the highly mobile grey wolf." Molecular Ecology
13(8): 2481-2490.)
LEGENDRE, P. and M.-J. FORTIN (2010). "Comparison of the Mantel test and
alternative...
2010 Jun 01
1
Printing page nmbers in multi-page pdf
Is it possible to print page numbers in pdf() with multiple pages?
thanks
Nevil Amos
2011 Sep 12
1
how to get xlab and ylab in bold?
A very basic query
This code plots OK the axis values are in bold but the axis labels are
not. how do I get them in bold too?
thanks
Nevil Amos
plot(c(1,1),xlim=c(0,450),ylim=c(0.7,1.4),xlab="Distance (cells) from
edge of grid",ylab="Resistance distance",
type="l",col="white",lwd=2,font=2,family='sans')
2010 May 07
1
writing string values from a matrix to a file without enclosing quotes
...00 000"
"179 179" "132 134" "150 152"
however I need the output file without the quotes but retaining 000 not
reducing it to 0
thus
77 79 132 132 000 000
179 181 132 132 150 150
179 179 132 132 000 000
179 179 132 134 150 152
How might I achieve this?
Thanks
Nevil Amos
2010 Dec 17
1
Change legend position in s.value {ade4}
How do I change the postion of the legend in s.value {ade4} from the
defaul , bootom left?
thanks
Nevil Amos
2010 Apr 29
1
using get and paste in a loop to return objects for object names listed a strings
I am trying to create a heap of boxplots, by looping though a series of
factors and variables in a large data.frame suing paste to constrcut the
facto and response names from the colnames
I thought I could do this using get()
however it is not working what am I doing wrong?
thanks
Nevil Amos
> sp.codes=levels(data.all$CODE_LETTERS)
>
> for(spp in sp.codes) {
>
>
> data.sp=subset(data.all,CODE_LETTERS==spp)
>
> responses = colnames(data.all)[c(20,28,29,19)]
> #if (spp=="BT") responses = colnames(data.all)[c(19,20,26:29)]
> groups=colnames...
2006 May 08
1
RE: Nut-upsuser Digest, Vol 11, Issue 3
...RDONLY)
To
Fd = ensure_ep_open(dev, ep, 0, O_RDONLY | O_NONBLOCK)
This just tells the read to return immediately if no data from usb rather
than block. OS buffers device anyway.
With this plus the information in the faqs I was able to achieve an
operational system.
Hope this is someway helps.
Nevil
Message: 1
Date: Sat, 6 May 2006 20:01:33 +0200 (CEST)
From: Vladimir Botka <vlado@botka.homeunix.org>
Subject: [Nut-upsuser] No USB/HID UPS found
To: nut-upsuser@lists.alioth.debian.org
Message-ID: <20060506194833.I47952@srv.g1.netng.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; fo...
2010 May 20
1
Geneland error on unix: Error in MCMC(........ :, unused argument(s) (ploidy = 2, genotypes = geno)
I am receiving the above error ( full r session output below) the
script runs OK in windows. and "genotypes" and "ploidy" are both
correct arguments
any suggestions would be most welcome
Nevil Amos
MERG/ACB
Monash University School of Biological Sciences
> library(Geneland)
Loading required package: RandomFields
Loading required package: fields
Loading required package: spam
Package 'spam' is loaded. Spam version 0.21-0 (2010-03-13).
Type demo( spam) for some demos, he...
2006 Feb 27
1
MGE Nova 1100 using newhidups on netBSD 3.0
...driver.parameter.port: auto
driver.version: 2.0.3
driver.version.data: MGE HID 0.8
driver.version.internal: 0.28
ups.mfr: MGE
ups.model: ups.mfr
I am fairly new to all this, have read all the FAQ's newsgroups but can not
find anything that seems to help.
Any ideas ????
Thanks
Nevil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060227/066abe22/attachment-0001.htm