Displaying 8 results from an estimated 8 matches for "emj83".
2011 Jan 10
5
Changing a logical matrix into a numeric matrix
Hi,
I would like to turn my TRUE/FALSE matrix into a 1/0 matrix (i.e. True=1 and
False=0)
[,1] [,2] [,3]
[1,] TRUE FALSE FALSE
[2,] TRUE TRUE FALSE
[3,] TRUE TRUE TRUE
[,1] [,2] [,3]
[1,] 1 0 0
[2,] 1 1 0
[3,] 1 1 1
Is there a quick way of doing this without a loop?
Thanks Emma
--
View this message in context:
2011 Jan 06
5
How to join matrices of different row length from a list
Hi,
I have several matrix in a list, for example:
e
[[1]]
[,1] [,2]
[1,] 1 3
[2,] 2 4
[[2]]
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 3 6
[[3]]
[,1] [,2]
[1,] 2 1
I would like to join them by column i.e.
[,1] [,2] [,3] [,4][,5] [,6]
[1,] 1 3 1 4 2 1
[2,] 2 4 2 5 NA NA
[3,] NA NA 3 6 NA NA
I have tried
2009 Apr 14
4
cbind
I have a list of numbers with NAs as below:
> A[,1]
[1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[19] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[37] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[55] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
NA
[73] NA NA NA 62 78 98
2008 Dec 03
1
Function output difficulties
is there anyway for some parts of the function output to not be returned,
even if the output has been used to calculate a further part of the
function? i have tried invisible() to no avail.
Thanks Emma
--
View this message in context: http://www.nabble.com/Function-output-difficulties-tp20813117p20813117.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 04
2
Matrix Manipulation
Hi,
Is there a quick way to go from this matrix:
> A
[,1] [,2] [,3]
[1,] 1 1 1
[2,] 2 2 2
[3,] 3 3 3
[4,] 4 4 4
[5,] 5 NA 5
[6,] NA NA 6
[7,] NA NA NA
to this matrix:
> B
[,1] [,2] [,3]
[1,] 1 NA NA
[2,] 2 NA 1
[3,] 3 1 2
[4,] 4 2 3
[5,] 5 3 4
[6,] NA 4 5
[7,] NA NA 6
2011 Jan 07
2
Summing over specific columns in a matrix
Hi,
I would like to sum some specific columns in my matrix- for example, my
matrix looks like this:
[,1] [,2] [,3] [,4] [,5]
[1,] 1 NA NA NA NA
[2,] 2 1 NA 1 NA
[3,] 3 2 1 2 1
[4,] 4 3 2 3 2
[5,] NA NA NA 4 3
[6,] NA NA NA 5 NA
I would like to find the sum of the first two columns, the second two
columns and
2009 Mar 14
1
multiple hypothesis testing
...;
>
>
> Today's Topics:
>
> 1. Re: Plots not loading (Philipp Pagel)
> 2. COURSE: R and S-PLUS 1 day introduction, UK, 29 April 2009
> (Andrew Jack)
> 3. Re: How to combine xtable and minipage with Sweave ?
> (Dieter Menne)
> 4. pairs of numbers (emj83)
> 5. Re: pairs of numbers (emj83)
> 6. Re: Taking diff of character vectors (Sergey Goriatchev)
> 7. Re: print median and sd... (jim holtman)
> 8. Re: Selecting / creating unique colours for behavioural /
> transitional data (Kingsford Jones)
> 9. code to find all...
2011 Mar 01
1
more boa plots questions
I have MCMC output chains A and B for example, I want to produce trace plots
for them using the boa command line...
#loads boa
boa.init()
#reads in chains
boa.chain.add(boa.importMatrix('A'), 'A')
boa.chain.add(boa.importMatrix('B'), 'B')
#plot trace plot
problems arise here!
I know I can get trace plots using boa.plot('trace') but this plots the
parameter