Displaying 8 results from an estimated 8 matches for "row8".
Did you mean:
row
2007 Nov 12
1
update matrix with subset of it where only row names match
I guess this has a simple solution:
I have matrix 'mat1' which has row and column names, e.g.:
A B C
row1 0 0 0
row2 0 0 0
....
rown 0 0 0
I have a another matrix 'mat2', essentially a subset of 'mat1' where the
rownames are all in 'mat1' e.g.:
B
row3 5
row8 6
row54 7
I want to insert the values of matrix mat2 for column B (in reality it
could be some or all of column names A, B or C, etc.) (same name in both
matrices if that matters - rownames of mat2 guaranteed to be in mat1)
into matrix mat1 where the rownames match, so final desired result is:...
2010 Mar 27
1
select n rows
Hello everyone,
I have a matrix with 8000 rows. If I want to select every 8 rows, (i.e.
row1, row2, ..., row8), what should I do?
Appriciate for any hints!
Thanks a lot!
Leo
--
View this message in context: http://n4.nabble.com/select-n-rows-tp1693136p1693136.html
Sent from the R help mailing list archive at Nabble.com.
2006 Mar 28
1
weights in glm (PR#8720)
...NA
Row2 -0.05467 NA NA NA
Row3 0.24541 NA NA NA
Row4 0.42035 NA NA NA
Row5 0.43961 NA NA NA
Row6 0.04532 NA NA NA
Row7 -0.04881 NA NA NA
Row8 0.25370 NA NA NA
Row9 -0.14976 NA NA NA
Row10 -0.01267 NA NA NA
Col2 0.69283 NA NA NA
Col3 0.62603 NA NA NA
Col4 0.27695 NA NA NA
Col5...
2013 Apr 24
1
matching observations and ranking
Hi,
It is not that clear.
If VAR1 is a match between columns AB001A, AB0002A, VAR2? between AB001A, AB362 and VAR3 between AB0002A and AB362:
Also, I assume row8 match would be taken as 1.
dat1<- read.table(text="
? S.No AB001A AB0002A AB362
?? 1?? -/-??????? C/C?? A/A???????????????????????
??? 2?? C/C??????? C/C?? A/A???????????????????????
??? 3?? C/C??????? C/C?? A/A???????????????????????
??? 4?? C/C??????? C/C?? A/A???????????????????????...
2007 Dec 07
0
Bug#454678: r-base-core: Crash when calling edit.matrix with edit.row.names = TRUE when there are no rownames (PR#10500)
...col3
row1 0.6185206 0.32911907 -0.12263839
row2 0.4553981 -1.77532265 2.06745757
row3 0.4676557 0.58817426 -0.30507048
row4 1.1898153 -1.24888167 1.02240513
row5 -1.4809138 0.05212133 0.25272844
row6 1.5709981 -1.87496256 -0.05699266
row7 0.3770318 -0.43538598 -1.28299648
row8 1.3900096 0.15139637 -1.01168270
row9 -0.3973376 0.05933193 0.34420058
row10 -1.4248380 0.86637712 -1.25193470
> q()
when the matrix is simply saved from the editor -- ie no segfault.
Hope this helps, and best regards, Dirk
| The only other version of R I can get my hands on at the...
2007 Dec 07
0
(PR#10500) Bug#454678: r-base-core: Crash when calling
...911907 -0.12263839
> row2 0.4553981 -1.77532265 2.06745757
> row3 0.4676557 0.58817426 -0.30507048
> row4 1.1898153 -1.24888167 1.02240513
> row5 -1.4809138 0.05212133 0.25272844
> row6 1.5709981 -1.87496256 -0.05699266
> row7 0.3770318 -0.43538598 -1.28299648
> row8 1.3900096 0.15139637 -1.01168270
> row9 -0.3973376 0.05933193 0.34420058
> row10 -1.4248380 0.86637712 -1.25193470
>> q()
>
> when the matrix is simply saved from the editor -- ie no segfault.
>
> Hope this helps, and best regards, Dirk
>
>
> | The only othe...
2013 Jan 28
6
Thank you your help.
Hi,
temp3<- read.table(text="
ID CTIME WEIGHT
HM001 1223 24.0
HM001 1224 25.2
HM001 1225 23.1
HM001 1226 NA
HM001 1227 32.1
HM001 1228 32.4
HM001 1229 1323.2
HM001 1230 27.4
HM001 1231 22.4236 #changed here to test the previous solution
",sep="",header=TRUE,stringsAsFactors=FALSE)
?tempnew<- na.omit(temp3)
?grep("\\d{4}",temp3$WEIGHT)
#[1] 7 9 #not correct
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...lt;#UCy at J`ONQyDLj&ioxBsR|AOQ21p3G6dk0?
z_VC~m$%jW4{zp6PCqWFTOR*>G{!$3rM)YRszXBkWOO=Xyg_%RpEl(*4eJb8qR<k){
z)<a<;WUSWa^PNGFo3tse?v$lXms6Gm1u{V1R;+jNK|%ieGpzO<?s?YJ8>{JuT>;D>
z2Us=chB`=QnPlZ>IuuOos)=jtjGpW6s|caGpYSS- at 50lbGQnF*)Rsosrtvrmcr?VG
zd}ukx|LAnpjd=y%55^ukCYrow8=yJY0ZA?Eg3Y5+Owaie+}<GB!Zh;_7Wz>`TVV!<
z4M)Z$CHa)Z2r%<;LD=aI)T{8{RLt!Xh_}YC`07NFU%d;kg;J6Yz&P4fUz=?6!byzx
z1C2We5Q`_c0Am6m3Dhc*q!;R-IETK>)*1a$Wkyj30CCPP<y&8j{fN6mv<}@yA^}6u
zgNcO;&dX0ymaneXCTym7{ODVbf~Ic$m^hX9F_N9%$+7=b{&fLX-zImktElD5a>(oT
z`XDV(#G%tSFjK;b?M$...