search for: anglia

Displaying 20 results from an estimated 55 matches for "anglia".

Did you mean: ganglia
2011 Mar 30
5
save ordinary numerical calculations as pdf
..., to incorporate with others in a document. I've tried pdf("filename") name_of_object_to_output dev.off() but it doesn't seem to work, appears that this pdf function is for graphics? Is there a way to output numerical objects to pdf? Thanks J Dr. Jim Maas University of East Anglia
2011 Feb 17
7
removing lower and upper quantiles from an arry
...i <-1:20 > i2 <- i[i<quantile(i,.75)] > i3 <- i[i>quantile(i,.25)] > i4 <- i[quantile(i,.25)< i > quantile(i,.75)] Error: unexpected '>' in "i4 <- i[quantile(i,.25)< i >" =============================== Dr. Jim Maas University of East Anglia
2011 Mar 14
7
creating character vector
...rst","second") but when I try this it doesn't ext <- as.character(c(first,second)) it complains. I have many variables to put into character vectors so dispensing with the quotes would be useful. Thanks Jim =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2010 Aug 24
3
multiple assignments ?
...c2, vec3) and want to create them all in one line. I've tried vec1,vec2,vec3 <- vector(length=5) and c(vec1,vec2,vec3) <- vector(length=5) and several other attempts but nothing seems to work ... suggestions? Thanks Jim =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2010 Sep 16
5
using variable from for loop in naming new variables
...ls()) I just want it to create 4 new variables called stuff1, stuff2, stuff3, stuff4 with the corresponding assignments. I realise that there are more elegant functions but this is just a model of a bigger situation. Thanks Jim =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2011 Feb 18
6
sort a 3 dimensional array across third dimension ?
...6 , , 3 [,1] [,2] [1,] 9 9 [2,] 7 9 I think this is sorting across the third dimension but several attempts using either the sort or apply functions have not worked. Any and all suggestions most welcome. Thanks J =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2011 Feb 17
2
does range of values in array include a third value?
...e 3, answer TRUE 2) does the range of -2 to 9 include -6, answer FALSE? All values could be negative or positive. Is there a R function that will test this or do I need to programme it? I have searched but not found one. Thanks J =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2010 Dec 15
3
calculating mean of list components
...tput <- mean (listobject[[1:5]]$element) to get the mean of "element" in the first five components? It doesn't like the $. I'm suspect one of the "apply" functions will work, but again I've not had success Thanks a bunch. J ---- Jim Maas University of East Anglia
2010 Aug 31
4
pasting together 2 character arrays
..."sex.trt0.trt1" "sex.trt0.trt2" I'm trying combinations of the "combinations" and "paste" functions, but no luck yet! Any suggestions about most efficient approach most welcome. Thanks Jim =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2010 Oct 20
2
create a list fails
...(1 ,N.trials[1,2]), rep(2,N.trials[1,3])), total.patientnums.trt1=dat2[ ,2], total.patientnums.trt23=dat2[ ,2], num.countstrt1=dat2[ ,5], num.countstrt23=dat2[ ,6] ) .... ???? =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2010 Aug 20
2
output values from within a function
...ce file to try out evaluations y <- 5 (x <- y^2) funct01 <- function (x,y) { z1 <- x + y z2 <- x * y z3 <- x^y results <- data.frame (z1=z1, z2=z2, z3=z3) return(results) } funct01(7,9) =============================== Dr. Jim Maas University of East Anglia Norwich, UK NR4 7TJ [[alternative HTML version deleted]]
2010 Aug 18
2
combinations
...d permutations in gtools, and also choose(). I suspect these could be coerced to provide the correct output but I may be missing a specific, or more flexible package that will produce this. Any suggestions most welcome. Thanks Jim =============================== Dr. Jim Maas University of East Anglia Norwich, UK [[alternative HTML version deleted]]
2006 Sep 11
3
Extracting overdispersion estimates from lmer amd glm objects
...iplots JavaGD lme4 Matrix lattice MASS rJava "1.4-7" "1.0-3" "0.3-4" "0.995-2" "0.995-15" "0.13-8" "7.2-27.1" "0.4-6" School of Environmental Sciences University of East Anglia Norwich, NR4 7TJ United Kingdom Email: t.gardner@uea.ac.uk Website: www.uea.ac.uk/~e387495 [[alternative HTML version deleted]]
2013 Jan 25
3
Removal of columns from matrix where all values of the column are identical.
...ces with numbers or characters. My question is - is there a better or more efficient way of doing this, maybe with apply or something. My first thought was apply set to operate over all columns, but was unsure of the indexing and selecting columns to be deleted. Thanks, Ben W. University of East Anglia (ENV): b.ward@uea.ac.uk The Sainsbury Laboratory: ben.ward@sainsbury-laboratory.ac.uk [[alternative HTML version deleted]]
2010 Sep 23
2
Error: attempt to apply non-function
...data.frame (tn1 = trialnum01, SimOR01 = simOR01, SimLOR01 = simLOR01, SimLORSE01 = simLORSE01, p1trial = p1.trial01, x0count, x1count ) set.seed(9321685) results rm(list=ls()) =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2011 Jan 19
1
combining matrices from a list into a multidimensional array
...2,] 1.213807 1.0000000 0.7472884 [3,] 1.631536 1.3479570 1.0000000 [[2]]$resultsd [,1] [,2] [,3] [1,] 0.00000000 0.05942645 0.05017175 [2,] 0.08719565 0.00000000 0.06344005 [3,] 0.13576301 0.11621178 0.00000000 =============================== Dr. Jim Maas University of East Anglia
2011 Jan 20
1
syntax for a list of components from a list
...st1[[2]],list1[[3]],along=3) This doesn't array2 <- abind(list1[[1:3]],along=3) This doesn't either array2 <- abind((list1[[1]]:(list1[[3]]),along=3) Any thoughts how I can make this work for larger numbers? Thanks J =============================== Dr. Jim Maas University of East Anglia [[alternative HTML version deleted]]
2011 Jul 06
1
elegant way of removing NA's and selecting specific values from a data.frame
...and then remove any values >= 30. I can do it in steps such as this but have failed to figure out how to do it in a single line .... any suggestions? first <- e[,23] second <- first[!is.na(first)] third <- second[second<=30] thanks a bunch J -- Dr. Jim Maas University of East Anglia
2011 Sep 01
1
cannot correct step size, geweke.diag of coda
...geweke.diag function of the coda package. Would anyone be kind enough to enlighten me as to the possible source of such an error, or how to debug/locate it? Error in { : task 22 failed - "inner loop 1; cannot correct step size" Thanks a bunch. J -- Dr. Jim Maas University of East Anglia
2008 May 12
1
hessian in constrained optimization (constrOptim)
...est a way I could use to I obtain the values of the hessian matrix... Many thanks, Carlo ************************************************** Carlo Fezzi Senior Research Associate Centre for Social Research on the Global Environment (CSERGE) Department of Environmental Sciences University of East Anglia Norwich (UK) NR2 7TJ Telephone: +44(0)1603?591408 Fax: +44(0)1603 593739