Displaying 20 results from an estimated 1400 matches similar to: "locate substring in the string it belong to"
2009 Aug 12
2
Using bold font with bquote
I'm trying to annotate a density plot and I'm using bquote to paste the sigma symbol next
to the numeric text of the standard deviation calculation that I am performing.
I have been able to successfully turn the sigma symbol and numeric output the color blue,
but when I try to change the font of the text to bold, R doesn't seem to recognize the "font="
command in the same way
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 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 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
2009 Aug 05
1
overlap two graph
Hi everyone,I need you all help.
I want to create few image in same diagram.
For example, I wan draw two ellipse in same diagram.
plot(ellipsePoints(2,5, alpha = 60), asp=1)
and
plot(ellipsePoints(2,5, alpha = 30), asp=1)
How to display both ellipse together? both is different in angle.
Thank you.
--
Hemavathi Ramulu
[[alternative HTML version deleted]]
2009 Aug 12
1
inserting into data frame gives "invalid factor level, NAs generated"
I am calculating some values that I am inserting into a data frame. From
what I have read, creating the dataframe ahead of time is more efficient,
since rbind (so far the only solution I have found to appending to a data
frame) is not very fast.
What I am doing is the following:
# create data frame
goframe = data.frame(goA = character(10), goB = character(10), value =
numeric(10))
goframe[1,] =
2009 Aug 11
1
Paste symbol and calculation in plot
I'm trying to annotate a density plot and I would like to have R calculate the
standard deviation and place it in the plot next to the standard deviation symbol
"sigma". I can successfully use the text command to paste "StDev =",round(sd(Data),digits=3))
on the plot. However, I have trouble when I want to replace "StDev" with the Greek
symbol sigma (See code
2009 Aug 05
1
Starting NONMEM (nmfe6) from R
Hello,
I have made an R script that prepares a NONMEM dataset and I would like
to start the NONMEM run right after the dataset is ready.
I am using windows XP, R 2.9.1 and NONMEM 6.
I have prepared a run.bat file that looks like this:
----------------------------------------
call K:\nmvi\NMdirectories.bat
call K:\nmvi\nmfe6 "path\control.txt" "path\output.txt"
2009 Jul 30
1
Continue to finish for loop even there is an error in one of rounds.
I am trying to fit a logistic model to my 10 year data (1999-2008) by year. Codes like below:
Year <- c(1999: 2008)
for(y in 1:length(year)) {
file.input <- paste("C:\\", year[y], "\\data.csv", sep="")
table <- read.csv(file=fileinput, header=TRUE, as.is=TRUE, na.strings=c(""))
initial <- getInitial(percent ~ SSlogis(age, Asym,
2009 Aug 11
1
Prevent sequential repeated values in data frame column
Hi,
I'm trying to randomize a sequence of trials for an experimental
design. The trials consist of values for each of two factors. As is
there are 30 combinations of the two factors, and I want them to be
ordered randomly but with the requirement that for one of the factors,
the value can never be the same as the previous value.
I'm currently randomizing my dataframe by using:
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.
2009 Aug 11
1
Generating R plots via Ruby CGI
Greetings,
I'm trying to debug a simple two-line plot routine in R called test.R:
cor(swiss)
plot(swiss$Catholic, swiss$Examination)
These commands work fine when typed into R. They also work fine when
I invoke this routine by the following line into my terminal:
R --slave < /Library/WebServer/Documents/gsa/test.R
My ultimate goal is to send data to this R routine via a web
2009 Aug 12
2
Plotting sigma symbol with unicode and turning into pdf
Paul,
You solution worked out really well when I ran my code in R. However, when I try to turn the plot into a pdf, the unicode string no longer seems to function and instead of the sigma symbol there are just two periods (See example code below).
The following is the code working in the R environment just like I want it to look:
set.seed(1)
Data=rnorm(100,sd=10000)
plot(density(Data))
2012 Dec 12
1
Polycom phones and ring no answer/302 Moved Temporarily
I have several Polycom IP550 phones running UC 4.0.3, connected to Asterisk 1.8.
Setting forwarding for "Always" works as expected; the phone issues a 302 Moved Temporarily, and Asterisk shifts the call to the new location.
Setting forwarding to "No Answer" means a 302 never gets issued. It just rings and eventually goes to voicemail. Watching with Wireshark, I never see a
2011 May 09
3
Really, really loud ringers
Anyone have some recommended equipment for alerting people to calls in a noisy environment?
I have Polycom IP550 phones set up in some really noisy environments - our mine hoists - and they tend to drown out the ringers. I'm using Clarity WR100s now. They're analog devices, attached to Linksys PAP2T ATAs as part of a call group to get a loud (advertised as 95dB) ring out there, but it
2014 Feb 10
2
Lots of calls, less memory
We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine for some time now. But! We've got such a incoming call volume over the few weeks that we'll have Asterisk occasionally restart itself. My hunch is that it is in part memory pressure.
I can't add RAM and have it help, because it's 32-bit. I intend to move to a 64-bit machine, but I was hoping to
2015 Feb 12
3
Is Asterisk a Linux only system?
Justin Sherrill wrote:
> I would love to run Asterisk on a BSD system. I do not know of any
> developers actively working on Asterisk on a BSD platform, though my
> knowledge isn't comprehensive.
I'm also unaware of anyone developing on BSD like that. Linux of course
and a smattering of folks on OSX doing the odd thing.
Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software