search for: sainsbury

Displaying 8 results from an estimated 8 matches for "sainsbury".

2013 Jan 25
3
Removal of columns from matrix where all values of the column are identical.
...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]]
2013 Jan 24
1
Pairwise Comparrisons
...necessary. So my question is, how can someone do pairwise comparisons in R this way, and ensure all combinations are compared, but it''s not as wasteful as my obvious shotgun approach which computers many redundant comparisons? Ben W. University of East Anglia (ENV): b.ward@uea.ac.uk The Sainsbury Lab (JIC): ben.ward@sainsbury-lab.ac.uk [[alternative HTML version deleted]]
2013 Feb 04
0
Subscript out of Bounds Lapply
...is up with this function. I can't figure out, as far as I can tell my indexing in the lapply line is correct, both for operating on every element of the list "Matrix, and going down the rows of the matrix storing the two "values". Thanks, Ben W. UEA (ENV) b.ward@uea.ac.uk The Sainsbury Laboratory ben.ward@sainsbury-laboratory.ac.uk [[alternative HTML version deleted]]
2012 Oct 28
6
Having some Trouble Data Structures
...ink, each individual in the model has many variables - in this case representations of genes. So I'm having trouble getting my head about this. Hopefully someone more experienced will be able to offer advice or a solution, it will be very appreciated. Many Thanks, Ben Ward (ENV, UEA & The Sainsbury Lab, JIC). P.S. I have searched previous queries to the list, and I'm not sure but this may be useful for relevant: Have you thought of using a list? > a <- matrix(1:10, nrow=2) > b <- 1:5 > x <- list(a=a, b=b) > x $a [,1] [,2] [,3] [,4] [,5] [1,] 1 3 5...
2012 Nov 27
2
Stuck trying to modify a function
...e two "in sync", however this does not work when I try to load the function into workspace: Error: unexpected '}' in "}" I hope someone can point out what it is I've done that isn't working, or a better way to do this. Best Wishes, Ben W. UEA (ENV) & The Sainsbury Laboratory. [[alternative HTML version deleted]]
2012 Nov 08
1
Extract cell of many values from dataframe cells and sample from them.
...do. It may very well be I'm not instructing R to sample as a require properly. Sadly my previous experience with R amounts to loading in dataframes from experiment and doing stat analysis & model fitting, not simulations or individual based models. Best wishes, Ben W. UEA (ENV) & The Sainsbury Laboratory. P.S. As an aside I've been thinking about doing this model an alternative way to as I described in the first bit of my email (based on dataframes). Instead I would use a multi-dimentional ragged array(s): The format would be a 2D layout, Where every line is an effector gene and eve...
2013 Feb 14
0
Building a Package & using gWidgets
...e, just by having library(gWidgets, gWidgetstcltk) and copying and pasting code. The abstract example I've provided faithfully reproduces the same issues I have with my proper simulation functions so if I can't get it working, I won't get the real thing working. Thanks, Ben W. UEA The Sainsbury Laboratory. [[alternative HTML version deleted]]
2012 Nov 16
1
Code works, but not as function.
...to work; I've seen no differences in the values in the list elements, before and after. I can't figure out why it works as a code chunk but if I try to make it a function nothing seems to happen. I'm probably going about making it a function wrong. Thanks, Ben W. UEA (ENV) & The Sainsbury Laboratory. [[alternative HTML version deleted]]