Displaying 20 results from an estimated 1000 matches similar to: "string evaluation"
2005 Jan 26
4
apply for nested lists
Hi,
I am working with lists whose terms are lists whose terms are lists. Although
the real ones contain locuslink identifiers and GO annotations (I work with the
Bioconductor GO) package, I have prepared an simplified example of what I have
and what I would like to do with it:
Imagine I have a list such as:
2011 May 12
1
Maximization of a loglikelihood function with double sums
Dear R experts,
Attached you can find the expression of a loglikelihood function which I
would like to maximize in R.
So far, I have done maximization with the combined use of the
mathematical programming language AMPL (www.ampl.com) and the solver
SNOPT (http://www.sbsi-sol-optimize.com/manuals/SNOPT%20Manual.pdf).
With these tools, maximization is carried out in a few seconds. I wonder
if that
2006 Jul 20
1
Can make no plots !!!
Dear all
I have Kubuntu linux and have updated to the latest version (6.06 dapper). I
do not know why but now I can not make no plots. For instance, when I type
>hist(...)
this is the message I get:
>can't find X11 font
> Error in X11 (display, width, heigth......)
> unable to start devide X11
> In addition: Warning messages:
> 1:locale not supported by Xlib: some X ops
2003 Aug 11
4
subscripts in lists
I am tying myself in knots over subscripts when applied to lists
I have a list along the lines of:
lis<-list(c("a","b","next","want1","c"),c("d", "next", "want2", "a"))
>From which I want to extract the values following "next" in each
member of the list, i.e. something along the lines of
2005 May 10
4
summary statistics for lists of matrices or dataframes
Is there a simple way to calculate summary statistics for all the
matrices or dataframes in a list? For example:
> z <- list(matrix(c(2,2,2,2), ncol = 2), matrix(c(4,4,4,4), ncol = 2))
> z
[[1]]
[,1] [,2]
[1,] 2 2
[2,] 2 2
[[2]]
[,1] [,2]
[1,] 4 4
[2,] 4 4
>
I would like to calculate, for example, the mean value for each
cell. I can do that the hard
2006 Mar 01
3
Voice Activation Level (speex 1.1.11.1)
Sorry.
I forgotten the words volume or loudness.
But it is know as microphone stroke too, i think.
If something can tell me something about that
procedure it would complete my pleasure.
To bring back memories,
i only wanted to know wheather i can change a
variable that holds the sound intensity (loudness)
needet to start "encoding >> sending" if the speex codec
is in voice
2015 Sep 01
1
Import USER and PASSWORD Samba3+OpenLadp TO Samba4
Thank Rowland Penny-6 and L.P.H. Van Belle for all the help I could not do
that users were exported from script, but I got a "trigger" to matter the
bills ... was ugly to look at, but for me it worked. I exported the CSV,
then edited, made a statement block where each line I gave the samba-tool
user add, edit in Excel and Notepad ++ to find and replace ... it took me 10
minutes to do 300
2012 May 02
4
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
On Tue, 2012-05-01 at 19:58 -0500, Peter Bergner wrote:
> On Tue, 2012-05-01 at 17:47 -0500, Hal Finkel wrote:
> > By default it should build for
> > whatever the current host is (no special flags required). To
> > specifically build for something else, use:
> > -ccc-host-triple powerpc64-unknown-linux-gnu
> > or
> > -ccc-host-triple
2008 Jul 01
5
trivial list question
Dear experts,
For the makeGenotype function I need a list as in the example. However,
since my list needs to be 184 long there must be an easy way to make it.
>list(1:2,3:4,5:6,7:8)
[[1]]
[1] 1 2
[[2]]
[1] 3 4
[[3]]
[1] 5 6
[[4]]
[1] 7 8
I have tried
lis<-1:184
dim(lis)=c(92,2,1)
as.list(lis)
and several other options. Any suggestions?
many thanks
Marco
[[alternative
2009 Dec 31
3
XML and RCurl: problem with encoding (htmlTreeParse)
Hi,
I'm trying to get data from web page and modify it in R. I have a
problem with encoding. I'm not able to get
encoding right in htmlTreeParse command. See below
> library(RCurl)
> library(XML)
>
> site <- getURL("http://www.aarresaari.net/jobboard/jobs.html")
> txt <- readLines(tc <- textConnection(site)); close(tc)
> txt <- htmlTreeParse(txt,
2006 Mar 10
2
lapply and list attributes
Hi
I have a list that has attributes:
attributes(lis[2])
$names
[1] "150096_at"
I want to use those attributes in a function and then use lapply to
apply that function to every element of the list, eg for simplicity's
sake:
my.fun <- function(x) {
attributes(x)
}
Then
l2 <- lapply(lis, my.fun)
It seems that "attributes(x)" within the function is not the
2015 Apr 21
3
distribucion de IRWIN HALL
estimados
estoy considerando programar la funcion de distribucion de Irwin hall.
lamentablemente no he tenido exito, pido que alguien me pueda colaborar con
aquello, les quedo agradecido de antemano.
--
atte. Lic. Genaro Llusco Silvestre
gellusco en gmail.com
Telf: 74028671
blog personal es:
http://www.cientificest.blogspot.com
[[alternative HTML version deleted]]
2008 Sep 17
5
Loop on vector name
[My previous message rejected, therefore I am sending same one with some modification]
I have 3 vectors with object name : dat1, dat2, dat3
Now I want to create a loop, like :
for (i in 1:3)
{
cat(sd(dati))
}
How I can do this in R?
Regards,
2018 Sep 26
2
Liveness Analysis
So what is the status about LiveVariables. Is there a plan to remove it?
After searching in old lvm-dev-mails it is mentioned that LiveVariable
still exists due to one pass needing it. And a comment in
TargetPassConfig.cpp indicates that the pass in question is
TwoAddressInstruction:
// FIXME: Once TwoAddressInstruction pass no longer uses kill flags,
// LiveVariables can be removed
2002 Aug 21
1
Ext3 indexed directory extension.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Searching in the ext3 filesystem mailing list I have seen that there is an
indexed directory extension for it.
Is this extension stable code ?
Has anyone test it ?
How may I obtain and install it ?
Is it available in any of the last kernel releases ?
Greetings.
- ---
Carles Xavier Munyoz Baldó
carles@descom.es
Descom Consulting
Telf: +34
2008 Sep 04
2
printing name of object inside lapply
Dear list members,
I am trying, within a lapply command, to print the name of the objects
in list or data frame. This is so that I can use odfWeave to print out a
report with a section for each object, including the object names.
I tried e.g.
a=b=c=1:5
lis=data.frame(a,b,c)
lapply(
lis, function (z) {
obj.nam <- deparse(substitute(z))
cat("some other text",obj.nam,"and so
2008 Jun 11
0
[LLVMdev] Possible miscompilation?
On 2008-06-11, at 13:16, Gary Benson wrote:
> Duncan Sands wrote:
>
>> Can you please attach IR which can be compiled to an executable
>> (and shows the problem).
>
> I've been generating functions using a builder and then compiling
> them with ExecutionEngine::getPointerToFunction(). Is there some way
> I can get compilable IR from that?
2008 Jun 11
2
[LLVMdev] Possible miscompilation?
Duncan Sands wrote:
> Can you please attach IR which can be compiled
> to an executable (and shows the problem).
I've been generating functions using a builder and then
compiling them with ExecutionEngine::getPointerToFunction().
Is there some way I can get compilable IR from that?
Cheers,
Gary
--
http://gbenson.net/
2006 May 31
4
how to decrease answer time !
Dear list
i am using Asterisk 1.2.5 with A@H . here is my problem.
if i dial a number (consider 79) i have to wait around 20 seconds
before my Asteisk box response. now i want to decrease this waiting
time . any idea how to do that ?
thanks
Salaque
2005 Mar 16
8
Summing up matrices in a list
Dear all,
I think that my question is very simple but I failed to solve it.
I have a list which elements are matrices like this:
>mylist
[[1]]
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
[[2]]
[,1] [,2] [,3]
[1,] 7 9 11
[2,] 8 10 12
I'd like to create a matrix M<-mylist[[1]]+mylist[[2]]
[,1] [,2] [,3]
[1,] 8 12 16
[2,] 10 14 18