[R] help with $ and % symbols in R

2009-09-18 Thread Edward Chen
Could someone explain to me briefly and point me to where I can find help on what the symbols $ and % mean in R? I have seen them in many others' codes, but I am still very unsure as to what they mean and what they do. Thank you very much! -- Edward Chen Email: edche...@gmail.com Cell Phone

[R] Help with for loop

2009-09-14 Thread Edward Chen
me what d is. but is it possible to output the order in which the difference is in the vector d? for example I would want to see x = 1,3,1 and they are from d[1], d[4], d[5]. This is just a crude example I thought of to help me do something more complicated. Thank you very much! * -- Edward Chen Em

[R] help with for loop

2009-09-11 Thread Edward Chen
ave a lot of bugs in there that hopefully someone can just point out a general direction. Thank you very much! -- Edward Chen Email: edche...@gmail.com Cell Phone: 510-371-4717 [[alternative HTML version deleted]] __ R-help@r-project.org ma

[R] help with plotting

2009-09-11 Thread Edward Chen
he first element will be used" everything was fine until i put in graphing functions in the end. Thanks. -- Edward Chen Email: edche...@gmail.com Cell Phone: 510-371-4717 [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] Normalize data set

2009-09-03 Thread Edward Chen
Hi all, I have a mxn matrix that consists of 28077 rows of features and 30 columns of samples. I want to normalize each row for the samples for each feature. I have tried normalize and scale functions but they don't seem to work out the way I want to. Thank you -- Edward Chen Email:

[R] help with recalling data points in a specific region of the plot

2009-08-24 Thread Edward Chen
Hi all, Is there a quick way to display or recall data points from a specific region on the plot? For example I want the points from x>5 and y>5? Thank you very much! -- Edward Chen [[alternative HTML version deleted]] __ R-

[R] help with median for each row

2009-08-21 Thread Edward Chen
very much! -- Edward Chen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide comm

[R] Geometric mean of rows in matrix

2009-08-20 Thread Edward Chen
Is there a function or an easier way to computer geometric means of each rows in a nxn matrix and spit out in an 1xn matrix ? -- Edward Chen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] jpeg() does not work

2009-08-18 Thread Edward Chen
lot(xx_norm, yy_norm) dev.off() I confirmed that the data base works and the plot function does work on its own. But whenever I try running it and output to jpg, it gives me "null device" the whole script was working just earlier. thanks for the help. -- Edward Chen [[al