Displaying 20 results from an estimated 36 matches for "expresion".
Did you mean:
expression
2006 Sep 14
0
Evaluating R expresions from C
Good afternood everybody,
I have a question about using "Rinternals.h": If I
need to evaluate a R expresion from my c++ code Do I
have to change my c++ code enterelly?, I'm thinking
about the way I allocate memory and the way I print
for example.
Thanks for any help in advance.
Patricia
___________________________________________________________
Do You Yahoo!?
La mejor conexi?n a Interne...
2011 Sep 01
2
Evaluate an expresion comming from string
Whats wrong here?
I was expecting 11 as the result...
Thanks in advance.
bench <- function(str,...) {
func <- function(x) x+10
expr <- list(...)[1]
str <- gsub("XXX",expr,str)
x <- as.call(gsub("\"","",str))
eval(x)
}
bench("func(XXX)", "1")
2013 Jan 08
4
Logical operator and lists
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.
My idea is data[[]][data==""] but it don´t work.
Thanks!!
Dominic
[[alternative HTML version deleted]]
2003 Feb 08
3
to modify a matrix
...7
[3,] 3 8
[4,] 4 9
[5,] 5 10
I like to get a modified matrix as follows;
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8 * 5 -> 40
[4,] 4 9
[5,] 5 10
The following expression does not work.
if (x[x[,1]==3]) x[x[,1]==3],2]*5
How can I obtain a right expresion to get a modified matrix?
Thanks in advance for help.
-------========--------
mitsu5
mitsu5 at ruby.famille.ne.jp
2009 Dec 07
3
Regular expression help
Hi there
I have a string like this i want to extract 9831019 from this string i used
a regular expresion \d+ by which i can only make it to see 7 and returns.
This type of number(9831019) appears in any part of the string and is
definitely more than 5 digits all the time and i want to give that as a
condition
UV7C11-F9-E1 MCS#9831019
MCS Lot #9512516"
how do i go abt it
Ramya
--
View this...
2013 Jan 31
2
evaluar una exprseion
Hola a todos,
Me gustaria saber como puedo evaluar / obtener el resultado guardado en un
objeto
cuando este se ejecuta. Quiero decir, el resultado de la siguiente
expresion:
> paste("res_UP_sep_dec_","16_17_18",sep="")
[1] "res_UP_sep_dec_16_17_18"
es un objeto (una lista) cuyo nombre es precisamente res_UP_sep_dec_16_17_18
> res_UP_sep_dec_16_17_18
$URSLITID
...
...
1 1 0 0 0.00 0.000...
2012 May 17
2
[LLVMdev] subtarget features
...with code as opposed to using the mechanism that
tablegen affords.
For example, if Mips16 or Micro Mips is not present, then I want the
subfeature "standard encoding".
If I can't do this, then it requires me to write a more complex
expression for the "standard encoding" expresions.
For mips , mips16 and micro mips are considered to be processor
extenasions to mips32 and mips64.
So usually you would build a mips32 or mips64 compiler and then add
-mips16 to the command line.
Right now, there are no implementations of micro mips or mips16 with
mips 64, though architectur...
2007 Dec 07
1
Internal functions
I've complex problem and this's idealization of it:
v=1:10
fx<-function(x){
v[x]=v[x]*2}
fy<-function(y){
fx(y)}
for(i in 1:10){
fy(i)}
How to modife expresion (and only that):
{v[x]=v[x]^2}
to achive the redefinetion of the values of vector v, the result should
be: v=(1:10)*2. I think, that could be done with using of internal
functions, but I'm not the programmer.
Thanks for help
pg
----------------------------------------------------
P?yta CD i...
2008 Nov 14
1
igraph and tkgraph
I have a number of (directed) graphs based on social groups, where the
members have expresed likes and dislikes in respect to the other
members. tkgraph makes it simple to draw the graphs in a very pleasing
way, but I would like to differentiate between positive and negative
relations in the graph by having the edges for the negative relations
dashed and the positive ones continuous.
Is
2009 Jul 31
1
asterisk 1.6 call forwarding
Dear All,
I'n trying to make a simple call forwarding, however I have small
problem when evaluating an expresion.
Here is my extensions.conf
...
; Unconditional Call Forward
exten => _#21*X.,1,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:4})
exten => _#21*X.,2,Hangup()
exten => #21#,1,Set(ignored=${DB_DELETE(CFIM/${CALLERID(num)})})
exten => #21#,2,Hangup()
...
exten => 50,1,Set(CFIM=${DB(CFIM/${EX...
2009 Dec 11
1
ANNOUNCE: New version of Activa TAPI driver
...a.s. http://www.ipex.cz)
* NEW: FEATURE_CODES standardization for AgentACD integration login, logout, ready, notReady.
* NEW: ActivaTSP x64 version.
* New: Windows 2008 Server compatibility.
* CHANGE: Some performance optimization.
* FIX: SIP/ Dns can generate void extensions.
* FIX: in process dn expresion, the duplicate filter deletes non duplicate entries.
download: http://sourceforge.net/projects/activa/files/
doc: http://activa.sourceforge.net/readme.html
many thanks to Activa Team
---------------------------------------
Marek Cervenka
=======================================
2012 Oct 04
1
(no subject)
producing a multi-figure plot, i am try to add beta_1, beta_2,.. beta_9 to
ylab using expression or substitution, but cannot work out like
for (i in 1:9){
plot(seq(1/m, 1-1/m, 1/m), beta.q[,i], type="l", col=1,
ylim=range(beta.q),
xlab="quantile", ylab=expresion(beta[i]))
}
any suggestions will be greatly appreciated.
DL
[[alternative HTML version deleted]]
2013 Dec 03
1
caracteres como argumentos
...quot;
mediante la importacion de ficheros.
lo que el código de arriba generaría sería una cadena de caracteres:
avglrss1 <- scan("avgl1.rep",skip=7)
avglrss2 <- scan("avgl2.rep",skip=7)
avglrss3 <- scan("avgl3.rep",skip=7)
lo que quiero hacer es evaluar esta expresion
para solucionarlo suelo ejecutar lo siguiente:
sink("read_rss.r")
for(i in 1:3)
{
cat(paste( "avglrss",i," <- ",
"scan(\"","avgl",i,".rep","\"",",skip=7",")" ,sep=""),"\n"...
2014 Dec 16
0
[ANNOUNCE] nftables 0.4 release
...te: reject: enhance the error support throwing message with more details
evaluate: reject: fix crash on NULL location with bridge and tcp reset
Alvaro Neira Ayuso (1):
src: add specific byteorder to the struct proto_hdr_template
Ana Rey (15):
src: Add support for pkttype in meta expresion
src: Add support for cpu in meta expresion
src: meta: Fix the size of cpu attribute
src: Add devgroup support in meta expresion
tests: Add automated regression testing
tests: Add ip folder with test files
tests: Add ip6 folder with test files.
tests: Add in...
2019 Jan 18
2
Is it possible to generate the IR representation with the original macro information?
Hi,
I use the following commands to compile the IR. But I don't see the
macro information in the .ll file. Is there a way to preserve the
macro information (print() in this case) for debugging purposes?
$ clang -std=gnu99 -g3 -flto -Wall -pedantic -c -o main.o main.c
$ clang main.o -flto -fuse-ld=gold '-Wl,-plugin-opt=save-temps' -o main.exe
$ llvm-dis main.exe.0.0.preopt.bc
/* vim:
2008 Feb 22
1
Calling R_PreserveObject from embedded R
...elease the R object
by calling R_ReleaseObject(sexp).
This seems to handle well the life cycle, but makes the running process to
use a growing and a never ending amount of memory. Actually, after
experimenting a while, I isolated the problem to iterate over a loop which
all it does is create an expresion for a number, call PreserveObject and
call ReleaseObject, and that alone makes the memory to grow indefinitely.
I couldn't find any comment about this behaviour. Is there something I'm
missing ?
I'm running the embedded R-2.6.2 binaries for Windows in a WindowsXP sp2
environment.
I&...
2017 Jul 09
2
GEP with a null pointer base
Can we go back a little?
1) Add a new transformation to InstCombine that will replace 'getelementptr
> i8, i8* null, <ty> %n' with 'inttoptr <ty> %n to i8*' when <ty> has the
> same size as a pointer for the target architecture.
What's the actual problem with this approach? I personally find it the most
compelling - it is well-defined (well,
2009 Nov 18
4
Switch Help
Dear Rexperts,
Given,
aar <-function(command) {
switch(command,
{scrn = cat("scrn :Screening","\n")}
{dx = cat("dx :Diagnosis","\n")}
{df = cat("df :Don't Forget","\n")}
)
}
I want to be able to do:
aar("dx") # function does cat("dx :Diagnosis","\n")
2015 Apr 30
2
predict nlme
Estimado Oliver Nuñez
Envío un ejemplo reproducible.
Javier Marcuzzi
# de donde tomo datos, y tiene el modelo (en el pdf)
library(MCMCglmm)
# librería con las funciónes que voy a usar
library(nlme)
datos0<-ChickWeight
# creo algunos datos que agrego a los origonales
Factor<-as.numeric(datos0$Chick)
Factor[Factor > 0 & Factor <= 10] <- 'A'
Factor[Factor > 10
2016 Aug 18
2
Porcentajes por grupos
...t; tmp <- as.data.table(tmp)
> tmp[, mean(Valores), by=Mes]
>
> Mes V1
> 1: 1 100.625
> 2: 2 125.300
> 3: 3 102.750
>
>
> o por año
>
> tmp[, mean(Valores), by=Agno]
> Agno V1
> 1: 2015 116.7692
> 2: 2016 105.6667
>
>
> la expresion mean(Valores) la puedes cambiar por el calculo que tu
> necesitas hacer.
>
> al leer el archivo tuve problemas con la Ñ, asi es que la cambie.
>
> Saludos,
>
> eric.
>
>
>
>
>
>
> On 08/17/2016 11:31 AM, Mauricio Monsalvo wrote:
>
>> Hola.
>>...