Displaying 12 results from an estimated 12 matches for "kevinchang".
2007 Sep 15
2
naming columns of data frame
Hey,
I am trying to make a data frame and the name of a column is composed of a
number, a dot, and a word, such as "1.whatever". But I always get this error
message:"syntax error, unexpected SYMBOL, expecting ',' in:" while printing
data frame out . When I rename the column with purely letter, everything
works fine. Some suggestion about the cause/ solution ?? Thanks.
2009 Aug 03
2
combine venn diagram and pie chart
Hi R users,
I am wondering if it there is any R's function helping integrate venn
diagram and pie chart to compare two related datasets.
I know the package limma(bioconductor) has something built-in for making
venn diagram, but I guess it would be very painful to use line and text to
specify the proportions in the fashion of pie chart .
Thanks in advance,
Kevin Chang
--
View this
2007 Oct 29
2
flops calculation
Hi all,
Since proc.time return three different kind of times (user, system and
elapsed) , I am wondering which one is right for calculating flops. In New S
Language (Becker et. al. ) , it seems to be the user because " the user time
measures the processor time used in S and the system time measures the
operating system in response to S's request". But in R Help , system time
2007 Sep 11
1
alternative way to loop
I heard that if-loop may result in errors if we are going to loop for a lot
of times. And sum() can be the alternative way to do this kind of hugbe
looping. But I haven't figure out how . Can someone please give me an
concrete example of using sum() for this purpose?
--
View this message in context: http://www.nabble.com/alternative-way-to-loop-tf4422299.html#a12613696
Sent from the R help
2009 Mar 03
1
save the layout using igraph
Hi R users,
I am using built-in functions in igraph package to draw networks . I need
to compare several network with exactly the same structure but with edge
hightlighted differently. I am wondering if there is a way to save the
layout so that every graph will look the same as each other except for the
colors of edges. Or is there any parameter I can set for this purpose??
Thanks in advance,
2007 Sep 13
1
rearrange problem
Hi All,
I am trying to rearrange alphabetically each element in a character vector.
ex: say the first element in the vector is "cba", and my goal is to turn it
into "abc". The suggested function to use is sort(). But it turns out that
sort doesn't work at the level of element. So I am wondering that if there
is an alternative function for this purpose. Please help me out .
2007 Sep 16
2
stalled loop
Hi,
The loop I wrote executes correctly but is stalled seriously. Is there a
way to hasten execution without coming up with a brand new algorithm ?
please help. Thanks.
--
View this message in context: http://www.nabble.com/stalled-loop-tf4451301.html#a12699524
Sent from the R help mailing list archive at Nabble.com.
2008 Aug 27
1
conversion of data structure between R and Perl
Dear R users,
I am trying to call a Perl subroutine from R . The subroutine returns an
arrray contaning three elements wihch are all strings. But the calling in R
return an integer which is 0. I have no idea how this could happen. Maybe
becasue I shouldn't use system() in R or I should load a particular package
for my R in windows. Please help ....
2009 Feb 26
1
layout of igraph
Dear R users,
I am trying to draw a network using igraph package. I intend to place the
hub nodes (the ones with the relatively more connection with other nodes) in
the center of the graph. Also, the graph need to be in the fashion that the
higher the correlation between two nodes is , the closer the two nodes will
be. Is there any layout that can help or any other way to do this?
Thanks in
2009 Jul 20
1
locate substring in the string it belong to
Hi R users,
I am trying generate the indices for locating a in the string it come from.
Given the length of the string, it will take too long using the combn() for
further comparison. I am wondering if R has any built-in function for this
purpose.
To make it concrete:
this.substring="cc"
this.string="ccc"
start.location=1,2
end.location=2,3
Thanks in advance,
Kevin
2007 Oct 03
1
inverse of matrix made by low.tri function
Hi all,
I am using R trying to get a inverse matrix of (X^T)X , but I keep getting
the error
message like: no b argument and no default value for sprintf(gettext(fmt,
domain = domain), ...) .
--------------------------------------------------------------------------------------------
# my code
X<-Matrix(rep(1,500),100,5)
X[lower.tri(X)]<-1-10^-7
XtX<- t(X)%*% X
XtXu<-lu(XtX)
2007 Oct 27
1
Newton method iteration problem
Hi all,
I am coding for finding the root of f(x)= phi(x) -alpha where phi(x) is the
cumulative density function and alpha is constant . The problem right now is
I can't get the "initialX" representing the root out of the while loop when
ending , it seems to me it disappear when the loop ends accroding to the
error message. I need help . Please suggest the cause or solution to this