Displaying 4 results from an estimated 4 matches for "rowname2".
Did you mean:
rownames
2006 Sep 15
1
Table manipulation question
I have a table:
C1
RowName1 3
RowName2 2
and another table:
C2
RowName1 5.6
RowName1a 4.3
RowName2 NA
I want to join join the tables with matching rows:
C1 C2
RowName1 3 5.6
RowName2 2 NA
I'm thinking of something like:
T1$C2=...
2002 Nov 04
3
write table and dinnames
I would write in tab-text file a table like this one:
TAB colname1 TAB colname2 TAB TAB... colnameN
rowname1 # # #
rowname2 # # #
rownameM # # #
then I wrote something like:
mymatrix <- matrix(nrow=M,ncol=N,byrow=T)
rownames(mymatrix) <- chvector1
colnames(mymatrix) <- chvector2
write.table(mymatrix,file=myfile,sep="\t").
But I obtained:
coln...
2006 Feb 01
2
Write.table: change points to commas when object contains a row of characters
...write table: jjmat is
still written out with points instead of commas.
The object looks like this:
> jjmat
f2a1 f2b1 f5a1 f5b1 f5c1
rowname1 "coltext1" "coltext2" "coltext3" "coltext4" "coltext5"
rowname2 4,428571 4,326531 4,265306 3,959184 3,306122
rowname3 0,469665 0,3328301 0,1776079 -0,1758072 0,0870965
rowname4 4,275862 4,206897 4,137931 3,931034 3,379310
> deparse(jjmat)
[1] "structure(list(\"coltext1\", 4.42857142857143, 0.469664970752337, &qu...
2012 Oct 12
3
Columns and rows
Hi,
Could you please advice some easy way to do the following for a dataframe
(header=F) having unequal column- & row- length.
1. Combine/stack/join contents from -
a) multiple rows into one column.
b) multiple columns into one row.
2. Stack contents from multiple columns (or, rows) into one column (or,
row).
Thank you.
Cheers,
Santana
[[alternative HTML