similar to: str_replace PHP Function Equiv.

Displaying 20 results from an estimated 100 matches similar to: "str_replace PHP Function Equiv."

2008 Feb 15
1
function similar to str_replace() in php.
Dear expeRt, I would like to know whether a function similar to str_replace() in php exists in R. Looking forward to hearing from you. Best, ========================================================= Center of Excellence for Science and Innovation Studies, Royal Institute of Technology Drottning Kristinas v?g 30 100 44 Stockholm, Sweden e-mail: donghoh at infra.kth.se, doriaba2 at
2023 Mar 13
1
str_replace por orden de aparición en una cadena.
Hola, Tengo una variable string que tiene muchos casos, pero necesito en cada uno de ellos reemplazar el último "==" por "=". asi está asi necesito si p1 == 1 o 2 == 1,3 si p1 == 1 o 2 = 1,3 si p1 == 3 o 4 == 1 si p1 == 3 o 4 = 1 si p1 == 5 == 0,7 si p1 == 5 = 0,7 si p1 == 5 = 0,7 si p1 == 5 = 0,7 si p1 == 6 == 0 si p1 == 6 = 0 si p1 == 7 == no aplica si p1 == 7 = no aplica
2023 Mar 13
1
str_replace por orden de aparición en una cadena.
Mientras aparezca alguien que sepa guiarte bien, te muestro desde mi autodidactez por dónde encararía. Y lo que para mí fue un gran descubirmiento: El paquete RegExplain, [image: irudia.png] (==)([\d, \w]*=[\d, \w]*)$ Eso captura en dos grupos diferentes todo lo que está desde el final hasta el primer igual, más todo lo que sigue hasta en igual doble, que lo excluye y lo captura como otro grupo.
2023 Mar 20
0
str_replace por orden de aparición en una cadena.
muchas gracias!! El mié, 15 mar 2023 a las 6:12, Carlos Ortega (<cof en qualityexcellence.es>) escribió: > Hola, > > Juntandolo todo se puede hacer así... > > #----------------------------- > cadena <- c( > 'si p1 == 1 o 2 == 1,3 si p1 == 1 o 2 = 1,3', > 'si p1 == 3 o 4 == 1 si p1 == 3 o 4 = 1', > 'si p1 == 5 == 0,7 si p1 == 5 =
2023 Mar 13
1
str_replace por orden de aparición en una cadena.
hola ,muchas gracias! no conocía esa librería para los regex...respecto a la pregunta de Carlos, puedo tener más de un == dentro de la cadena, por ejemplo así: así está si p1 == 1 o 2 o p2 == 1 == 1,3 así necesito si p1 == 1 o 2 o p2 == 1 = 1,3 El lun, 13 mar 2023 a las 18:11, Juan Abasolo (<juan.abasolo en ehu.eus>) escribió: > Mientras aparezca alguien que sepa guiarte bien, te
2023 Mar 14
1
str_replace por orden de aparición en una cadena.
Buenas, Una opción es partir la cadena usando el == como separador y luego recomponerla. > a <- "p1 == 1 o 2 o p2 == 1 == 1,3" > b <- strsplit(a, "==") > b <- b[[1]] > b [1] "p1 " " 1 o 2 o p2 " " 1 " " 1,3" > paste0(paste0(b[1:(length(b)-1)], collapse = '=='), '=', b[length(b)]) [1] "p1 ==
2023 Mar 14
1
str_replace por orden de aparición en una cadena.
Muchas gracias!! Lo pruebo!!! El mar., 14 de marzo de 2023 04:55, Proyecto R-UCA <r-uca en uca.es> escribió: > Buenas, > > Una opción es partir la cadena usando el == como separador y luego > recomponerla. > > > a <- "p1 == 1 o 2 o p2 == 1 == 1,3" > > b <- strsplit(a, "==") > > b <- b[[1]] > > b > [1] "p1 "
2023 Mar 14
1
str_replace por orden de aparición en una cadena.
hola! ,me sirve, pero el tema es que necesito crear tres variables nuevas con el resultado de strsplit....pero me genera una lista y no lo estoy pudiendo combinar con mutate de dplyr.... El mar, 14 mar 2023 a las 7:46, juan manuel dias (<juamadias en gmail.com>) escribió: > Muchas gracias!! Lo pruebo!!! > > El mar., 14 de marzo de 2023 04:55, Proyecto R-UCA <r-uca en uca.es>
2005 May 04
3
Multivariate multiple regression
I'd like to model the relationship between m responses Y1, ..., Ym and a single set of predictor variables X1, ..., Xr. Each response is assumed to follow its own regression model, and the error terms in each model can be correlated. My understanding is that although lm() handles vector Y's on the left-hand side of the model formula, it really just fits m separate lm models. What should
2012 Jul 31
0
Managing /etc/ssh/shosts.equiv
Hi, does anyone have any elegant solutions for managing shosts.equiv? In my puppet ssh module, host keys for /etc/ssh/ssh_known_hosts are automatically managed with: @@sshkey { $hostname: ensure => present, type => "rsa", key => $sshrsakey, } Sshkey <<| |>> Is there a similar construct for
2005 Jan 25
0
Samba equiv for OS/2 NET ADMIN or NT's RCMD / PSEXEC?
Is there an equivalent solution for NET ADMIN / RCMD / PSEXEC within Samba allowing Samba servers to start / run programs on Windows clients? Maybe it is one of the RPC or RAP commands? -- Michael Lueck Lueck Data Systems Remove the upper case letters NOSPAM to contact me directly.
1999 Jun 08
1
equiv of inspect ?
Is there an equivalent under R (I got the 0.64.1 version) of the inspect() function ? thanks. ------------------------------------------------------ mathieuros at bigfoot.com Universiti Paul Sabatier Toulouse Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
2010 Apr 27
1
ruby-libvirt equiv of virsh list --all
Hi all, I have a working KVM system managed with virsh and virt-install. I am currently playing with ruby-libvirt-0.1.0. I am wanting to build a simple sinatra/ruby app to show the VE's on a node and their state. I have ruby 1.8.5 on CentOS 5.4. I have the basics of it worked out but am a little stuck. Is there a way of retrieving a list of all VM's on a host using
2005 Feb 22
0
Possible bug in openssh parsing of hosts.equiv for netgroups?
Open-SSH'ers, I just noticed that ssh doesn't parse hosts.equiv the same as rsh. I set up an usertest user on targethost, and then su'ed to usertest on sourcehost. I put this in targethost's /etc/hosts.equiv + -usertest + at trusted-hosts (all hosts are rolled up into this netgroup) this should disallow usertest from rsh'ing into targethost from all hosts, but
2005 Apr 19
0
[Bug 1018] Incorrect parsing of hosts.equiv for netgroups
http://bugzilla.mindrot.org/show_bug.cgi?id=1018 Summary: Incorrect parsing of hosts.equiv for netgroups Product: Portable OpenSSH Version: -current Platform: All URL: http://marc.theaimsgroup.com/?l=openssh-unix- dev&m=110909300030444&w=2 OS/Version: All Status: NEW Severity:
2015 Jul 02
0
Fraud Protection Alert Message-ID: <1435820092.18157.qmail@welcome.com> From: "American Express" <AmericanExpress@welcome.com> Content-Type: text/html <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><div
[This email is either empty or too large to be displayed at this time]
2002 Jul 05
0
hohsts equiv
Having got a little further through the debugging session, I now read in the manpage for smb.conf that Windows NT doesn't supply a password to Samba. My backup server is WinNT and needs access to the Samba shares to back the data up; it's also the PDC, so is theoretically the source for password confirmations. How does this one work - can a PDC in fact supply a password for itself, or
2003 Oct 14
0
domain admin group equiv. with 3.0?
I was previously using 2.2.8 and had 'domain admin group = @smbadmin' set making anybody in the smbadmin group an administrator. However, with samba-3.0 that went away. So, I set 'admin users = @smbadmin name1 name2...' but it doesn't give my users administrative privilege. The logs seem to indicate that the account has administrative privileges but they do not.
2006 Feb 22
1
Does anyone use rhosts or hosts equiv autentication in Samba ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Folks, I'm looking to remove some more old code. Does anyone use either of these features currently? cheers, jerry ===================================================================== I live in a Reply-to-All world ----------------------- Samba ------- http://www.samba.org Centeris
2009 Mar 31
1
external equiv to R_serialize()?
I'm trying to efficiently allow conversion of R objects to PostgreSQL bytea (raw binary) datatype within PL/R for persistent storage in Postgres tables. I have found R_serialize() which looks like what I need, -- e.g. R_serialize(object, NULL, FALSE, NULL) -- except that it is marked attribute_hidden. Is there some other externally available interface that I can use? Thanks, Joe