search for: chartr

Displaying 20 results from an estimated 93 matches for "chartr".

Did you mean: chart
2002 Jan 19
2
comma as decimal separator in plots
Hi, Some time ago I asked about how to use comma as decimal separator in plots and Mr. Paul Murrell wrote: ------- You could try something with axis() and chartr(), like ... par(mfrow=c(2,1)) plot(1:10/11, rep(1, 10), main="Standard X-Axis") plot(1:10/11, rep(1, 10), main="Customised X-Axis", axes=F) axis(1, at=pretty(1:10/11), labels=chartr(".", ",", as.character(pretty(1:10/11)))) axis(2)...
2020 Feb 03
2
Error de caracteres al ejecutar un script en Windows
Buenas tardes, Tengo un problema al ejecutar un script de R desde la consola de Windows 8.1. El código desde RStudio funciona perfectamente, pero al ejecutarlo desde la consola peta al hacer una cambio de caracteres. El error que da en la consola es: Error in chartr("áéíóúà èìòùâêîôû", "aeiouaeiouaeiou", xpeliculas) : 'old' es más largo que 'new' Que es cuando uso chartr para quitar los acentos de las vocales: chartr('áéíóúàèìòùâêîôû','aeiouaeiouaeiou', 'cadena') Supongo que será po...
2006 Jul 11
2
notifycmd problem
...EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC here is the nut_notify script : #!/bin/sh echo "$*" | from=onduleur@iut-chartres.fr smtp=smtp.univ-orleans.fr /usr/local/bin/mailx -n -s "Evenement onduleur" pascal.legrand@univ-orleans.fr my problem is that i have no mail when i unplug the ups where is the problem ?? thank you for yours answers -- ---------------------------------------------------- Pascal L...
2007 Sep 13
1
chartr better
For example, the following changes are necessary when i convert a Japanese hiragana into katakana in chattr. R code: > chartr("\u3041-\u3093","\u30a1-\u30f3","\u3084\u3063\u305f\u30fc") --- R-alpha.orig/src/main/character.c 2007-09-05 07:13:27.000000000 +0900 +++ R-alpha/src/main/character.c 2007-09-13 16:10:21.000000000 +0900 @@ -2041,6 +2041,16 @@ return(c); } +typedef stru...
2004 Jul 29
3
Editing Strings in R
I was wondering if there is a way of editting strings in R. I have a set of strings and each set is a row of numbers and paranthesis. For example the first row is: (0 2)(3 4)(7 9)(5 9)(1 5) and I have a thousand or so such rows. I was wondering how I could get the corresponding string obtained by adding 1 to all the numbers in the string above. Dursun [[alternative HTML version deleted]]
2010 Jul 19
3
"ACCTGMX" to "1223400" in R?
Hi, I am a newbie in R and was working on some DNA data represented as strings of A,C,T and G (also wild-character like M and X). I use the Bioconductor package in R. Currently I need to convert a string of the form "ACCTGMX" to "1223400" i.e. A is replaced by 1, C with 2, T with 3, G with 4 and any other character with a 0. I checked with 'replace' and also with a
2007 Mar 08
1
ldap
...do to make it works with an ldap authentication. how to "tell" to ldap that the user "teacher1" has an account on the 2 samba servers. anybody could help me (with ldif exemple) thank you -- --------------------------------------------------------------- Pascal Legrand *IUT de Chartres* - _Service Informatique_ --------------------------------------------------------------- 1, place Roger Joly 28000 Chartres Tel : 02 37 91 83 36 - Fax: 02 37 91 83 01
2005 Nov 08
1
message command
...essage only to the server i can get the message and all the information in popup.txt, but when i send a message to all the domain it doesnt works is somebody got an explication thank you and sorry for my poor english -- ---------------------------------------------------- Pascal Legrand *IUT de Chartres* - _Service Informatique_ ---------------------------------------------------- 1, place Roger Joly (/anciennement/ /place/ /Pierre/ /Mend?s/ /France/) 28000 Chartres Tel : 02 37 91 83 36 - Fax: 02 37 91 83 01 courriel : Pascal.Legrand@univ-orleans.fr
2017 Oct 11
6
changing "," to "." in data.frame
...riends - I have a data.frame with "," instead of "." and found the discussion http://r.789695.n4.nabble.com/How-to-replace-all-commas-with-semicolon-in-a-string-tt4721187.html#a4721192 so copying the code of Ulrik(I hope:-)) I tried (making some data) AX <- data.frame(a=chartr(".",",",rnorm(5)),b=chartr(".",",",rnorm(5)),c=rnorm(5)) library(plyr) adply(AX, 2, function(x){ if(!is.numeric(x[[1]]){ gsub(",", ".", x[[1]]) }else{ x[[1]] } }) and got the unwelcome error Error: unexpected '{' in: "ad...
2005 Mar 02
1
Error on Windows installing package to non-default library
...ackreference 2 in regular expression After looking at src/library/utils/R/windows/linkhtml.R, it seems the error is that the "\\2" part of the path is interpreted by gsub as a back reference. Changing "\\" to "/" in the library path fixes this issue: > okLib = chartr("\\", "/", badLib) > z = .libPaths(okLib) > z [1] "c:/badExample/2/foo" "C:/falcon/sw/rw2010dev/library" > install.packages(pkg, repos=NULL, lib=okLib) package 'abind' successfully unpacked and MD5 sums checked updating HTML pac...
2004 Oct 07
2
two help problems in R-2.0.0 for Windows (PR#7269)
...:\R\library\stats\html/Normal.html" and has problems with different kinds of slashes (/ vs. \). options(chmhelp=FALSE, htmlhelp=TRUE) ?dnorm # does not work! This can be fixed by changing line 4 in .../src/library/utils/R/windows/help.R as follows: - browseURL(file) + browseURL(chartr("/", "\\", file)) AArrrrrgh, I've never used non-text help pages in the developer releases ... and obviously nobody else ... Uwe Ligges
2008 Jul 09
5
boot disk failure
Hello, i've got a problem with boot pxe on pc, all my pc works fine except in a room where all the same pc doesnt works : my configuration (dhcp tftp etc...) works fine also here is a part of my tftpboot directory ghost/ memdisk menu.c32 pxelinux.0 pxelinux.cfg/ ./ghost: ghost288.IMA ghost_geii_101.IMA ghost_MM.IMA ghost_MM.IMA.old ./pxelinux.cfg: default here is a part of my default
2003 May 22
4
grep, gsub, sub have problems with NA values (PR#3078)
In a string context, grep, gsub, sub are improperly treating NA (missing) as the string "NA", and returning unexpected results > grep("A", c(NA,"NA")) [1] 1 2 # expected: # [1] 2 > gsub("A", "X", c(NA,"NA")) [1] "NX" "NX" # expected # [1] NA "NX" > sub("A", "X",
2010 Mar 19
5
Encrypt/decrypt in R
Hi all, Does any one know of any encryption/decryption algorithms in R? I'm not looking for anything robust - I want some way of printing output to the screen that the user can't read immediately, but can decrypt a little later. The main thing I don't want to the user to see is a number, so (e.g.) ROT13 isn't appropriate. Hadley -- Assistant Professor / Dobelman Family Junior
2007 Aug 07
2
Embedded nuls in strings
...Char(raw0) > string0 [1] "ABCD\0F" nchar() should return 6: > nchar(string0) [1] 4 In addition this embedded nul seems to break almost all string manipulation/searching functions: grep("F", string0) strsplit(string0, split=NULL, fixed=TRUE)[[1]] tolower(string0) chartr("F", "x", string0) substr(string0, 6, 6) ... etc... Not very surprisingly, they all seem to treat string0 as if it was "ABCD"! Cheers, H.
2004 Aug 27
3
gsub, backslash and xtable
...uot; "75\%" "90\%" "95\%" and $ awk '{gsub(/%/,"\134%"); print}' <fred "5\%" "10\%" "25\%" "50\%" "75\%" "90\%" "95\%" As a possble 'work around', I noticed that, > chartr("z","\",gsub("%","z%",pp)) Error: syntax error > chartr("z","\\",gsub("%","z%",pp)) [1] "5\\%" "10\\%" "25\\%" "50\\%" "75\\%" "90\\%" "95\\%"...
2017 Oct 11
0
changing "," to "." in data.frame
...stead of "." and found the > discussion > > http://r.789695.n4.nabble.com/How-to-replace-all-commas-with-semicolon-in- > a-string-tt4721187.html#a4721192 > > so copying the code of Ulrik(I hope:-)) I tried > > (making some data) > > AX <- > data.frame(a=chartr(".",",",rnorm(5)),b=chartr(".",",",rnorm(5)),c=rnorm(5)) > > > library(plyr) > > adply(AX, 2, function(x){ > if(!is.numeric(x[[1]]){ > gsub(",", ".", x[[1]]) > }else{ > x[[1]] > } > }) > > and got the...
2011 Aug 30
2
url prep function (backslash issue)
Greeting R Community, I am a windows user so this problem may be specific to windows. I often want to source files from within R such as: C:\Users\Rinker\Desktop\Research & Law\Data\School Data 09-10. To source this file I need to go through the path and replace all the backslashes (\) with forward slashes (/). I usually do this in MS Word using the replace option, however, I'd like
2006 Jul 10
1
script init
hello, i'm looking for a script to launch upsdrvctl, upsd and upsmon. i dont find anything for a mandrake. does anybody have this kind of script thank you -- ---------------------------------------------------- Pascal Legrand *IUT de Chartres* - _Service Informatique_ ---------------------------------------------------- 1, place Roger Joly 28000 Chartres Tel : 02 37 91 83 36 - Fax: 02 37 91 83 01 courriel : Pascal.Legrand@univ-orleans.fr
2006 May 22
0
liebert GXT2-6000RT230
...n , but when i launch the "/usr/local/ups/bin/upsdrvctl start" script i've no information "detected" then i think it doesnt works. Is there a way to make it works ?? thank you for your answers -- ---------------------------------------------------- Pascal Legrand *IUT de Chartres* - _Service Informatique_ ---------------------------------------------------- 1, place Roger Joly 28000 Chartres Tel : 02 37 91 83 36 - Fax: 02 37 91 83 01 courriel : Pascal.Legrand@univ-orleans.fr