Displaying 5 results from an estimated 5 matches for "mymatrix2".
Did you mean:
mymatrix
2006 Apr 04
2
Selecting out certain values from a MATRIX
I have two objects, one matrix and one vector.
I want to use my vector to subset certain values out of my matrix.
For example:
I want to tell R, to select out all rows in myMatrix into a new myMatrix2 IF
that corresponding row is less than a 0.5 in myVector.
So:
myMatrix = a matrix of 8000 by 20
myVector = vector of 8000
myMatrix2 = a matrix of < 8000 by 20 (based on selection criteria in
myVector)
I hope this makes sense..
[[alternative HTML version deleted]]
2005 Feb 21
3
Sorting a matrix on two columns
Hello,
If a matrix with 5 columns has been defined and the first two columns
need to be sorted in ascending order, how can this be achieved whilst
ensuring the
other 3 columns data are in relative position to the sorted columns?
Glen Jones
[[alternative HTML version deleted]]
2011 May 20
3
Adding a numeric to all values in the dataframe
Hi there
I just want to add 2 to all the values in dataframe.
I tried using sapply but it seem to die all the time.
Any help would be appreciated.
Thanks
Ramya
--
View this message in context: http://r.789695.n4.nabble.com/Adding-a-numeric-to-all-values-in-the-dataframe-tp3537594p3537594.html
Sent from the R help mailing list archive at Nabble.com.
2008 Aug 01
2
how to replace NA values in a list
I have a matrix named "spec" (see below), it is a 6x3 matrix, and each element of spec is a list. For example, spec[1,"wavenumber"] is a list, and it contains 1876 numeric numbers and NAs. I want to replace the NAs to zero, but don't know how to change it, the difficulty may be all the elements are of the class list, so it is hard to change.
Thank you for your help!
2012 Feb 18
2
transforming a data frame to matrix
Hello
> orderulcount
Group.1 Group.2 Group.3 x V5
7 C L 0.0 30 C / L
19 C L 0.2 27 C / L
31 C L 0.4 15 C / L
43 C L 0.6 7 C / L
54 C L 0.8 2 C / L
10 C S 0.0 27 C / S
22 C S 0.2 10 C / S
34 C S 0.4 6 C / S
46 C S 0.6 1 C / S
1 D