Hello members,
I have this data frame with 3 columns,
C1 C2 TYPE
10 20 A
33 44 B
66 80 A
111 140 B
144 220 B
300 340 A
380 449 A
455 500 B
510 520 A
540 580 B
Here, the rows 4 , 5 has type "B" and sim
Hello Petr Savicky, hello all,
I have a situation similar to the previous one,
I need to group a data.frame in a specific way,
col1 col2 score
2873 3192 319
4268 4451 183
5389 5534 145
6622 10622 4000
12631 17853 5222
20408 20615 207
21595 21838 243
23121 2313918
the out put
I am new to R and request your kind help.
I have a table like the one below,
one two
1 apple fruit
2 ball game
3 chair wood
4 wood plain
5 fruitbanana
6 cloth silk
Note: duplicate entries are there
the task is to create relations to each
Hello jholtman,
Thanks very much for the suggestion.
I tried using "as.is=TRUE" and it worked as the way I expected. Sorry for
not being clear about the problem in my mail.
The characters are very much needed, cos I am trying to create a signaling
network using "Rgraphviz".
Thanks again.
Regar
Hello Petr Pikal,
Thanks for the suggestion.
I am sorry for not being very clear in my mail. from your example, Its clear
to me now about how to turn factors to character values.
I am working on large data sets, and the ultimate aim is to create
interaction network, so the characters are very
Hello,
I have a tab limited text document with multiple lines as mentioned below,
#FILE FORMAT
#Book booknameauthor publisher pages
#CD namecontent
Hello Jim, hello all,
Thanks very much for the inputs, I used the code and it solved my
problem
special thanks to Jim Holtman for the code.
Regards,
karthick
--
View this message in context:
http://r.789695.n4.nabble.com/Parsing-txt-file-tp3035749p3036284.html
Sent from the R help mailin
Dear R community,
With an advantage of being "NEW" to R, I would like to post a very basic
query here,
I am in need of representing gene expression data which ranges from -0.09 to
+4, on plot "segment". please find below the data df, the expression values
are in df[,2]. kindly help me with the co
Dear Jim,
Thank you very much for your code.
There is no problem with
df[df[,2]>0,3]<-color.scale(df[df[,2]>0,2],c(1,0),1,c(0,1)) but the other
has an error message if there is a negative value, like
> df[df[,2]<0,3]<-color.scale(df[df[,2]<0,2],1,c(1,0),c(1,0))
Error in rgb(reds, greens, blues) :
Dear R experts,
I am interested in getting the dimensions for the matrix dynamically, based
on the the number of elements in a matrix for example. if the number is 12,
I should get dim= 3X4, if it is 20, dim=5X4.
please help me do this.
Thank you
Regards
karthick
--
View this message in conte
Hello Members,
I need to group a data.frame in a a specific way, like shown below,
DF raw is like this,
id col1 col2 score
1 A B 40
2 B C 55
3 C D 4000
4 D E100
5 E F300
I want the out put as
List
[1]
A B C
[2]
D E
[3]
F
Basicall
Dear Petr Savicky,
Thank you very much for the solution.
your script really worked for my DF, and yes as per your guess , its always
---> DF[i, "col2"] == DF[i+1, "col1"]
Regards,
karthick
--
View this message in context:
http://r.789695.n4.nabble.com/DF-grouping-tp4381310p4381646.html
Sent fr
Hello R lovers,
For my GUI, I am using gslider of Gwidgets. I need to add the "to=" value
dynamically ie., maximum value from a data frame column(something like
to=max(df[,3])). But I am getting error message like
Error in checkPtrType(object, "GtkWidget") :
object of class NULL isn't a GtkW
13 matches
Mail list logo