similar to: strip leading 0's

Displaying 20 results from an estimated 3000 matches similar to: "strip leading 0's"

2009 Dec 09
2
Recent TeX changes and R/package manuals
As some of you will be aware, TeXLive 2009 was released last month having blocked updates on earlier versions since May. This has lead to a flood of updates of LaTeX packages, as a result of which the PDF manuals of R 2.10.0 and earlier will no longer build, for two separate reasons. For MiKTeX users: at least version 2.8 (the current one) has the same updates (a week or so later) and has
2004 Sep 11
2
Leading '0's and what do 'pri_dialplan', 'pridialplan' and 'prilocaldialplan' in zapata.conf do?
Hi all, I've been batting my head against a brick wall for the best part of the day and still haven't got any further (apart from getting a big headache, that is). I've searched the Wiki and Googled the hours away, but I still can't find supportive documentation. I've just replaced my ISDN Fritz!/chan_capi setup with a HFC/Zap configuration and had the following problems: 1
2004 Jul 12
1
R: How to make * don't strip the leading 0
> Is it possible to tell asterisk not to strip the leading 0 > of *incoming* MSNs? I use asterisk with i4l and whenever > I get a call from an long-distance party, the leading 0, which > should be there according the german numbering, is not. Are you *really* sure that the 0 is transmitted in the CLI, and that it isn't stripped already by the phone company? I think the easiest
2008 Nov 15
2
[PATCH] Don't strip two leading slashes from paths.
rsync 3.0.4 will transform a path like '//machine/share/dir' to '/machine/share/dir' when the --protect flag is provided. This causes a problem with Cygwin, where the two leading slashes are meaningful (access of a remote Windows share). [[[ % rsync -s localhost://tela/downloads rsync: link_stat "/tela/downloads" failed: No such file or directory (2) rsync error: some
2005 Jul 30
4
How to hiding code for a package
Hey everyone, I have made a package and wish to release it but before then I have a problem. I have a few functions in this package written in R that I wish to hide such that after installation, someone can use say the function >foo(parameters = "") but cannot do >foo. Typing foo should not show the source code or at least not all of it. Is there a way to do this ? I have searched
2004 Jul 12
3
How to make * don't strip the leading 0
Hi folks! Is it possible to tell asterisk not to strip the leading 0 of *incoming* MSNs? I use asterisk with i4l and whenever I get a call from an long-distance party, the leading 0, which should be there according the german numbering, is not. So if I get a call from a mobile phone 0177-1234567 should be displayed, but 177-1234567 is displayed. I double checked if I've forgotten to remove an
2006 Aug 04
2
Data frame referencing?
Dear R users, When you do: > x <- rnorm(10) > y <- rnorm(10) > z <- rnorm(10) > a <- data.frame(x,y,z) > a$x [1] 1.37821893 0.21152756 -0.55453182 -2.10426048 -0.08967880 0.03712110 [7] -0.80592149 0.07413450 0.15557671 1.22165341 Why does this not work: > a[a$y>0.5,y] <-1 Error in "[<-.data.frame"(`*tmp*`, a$y > 0.5, y, value = 1) :
2012 Feb 15
7
ggplot rank stack bar automatically.
Hi, all, I am currently trying to learn this example. http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ I created the stack bar easily. If I would like to rank the stack bar from the highest on the right, shortest on the left and eventually I could show the data "1991-00" on the left and "1823-30" on the right, how could I do that? Apart from this, I find
2008 Dec 05
1
How to retrieve a method
Hi there, I am interested in the inner workings of wilcox.test: > wilcox.test function (x, ...) UseMethod("wilcox.test") <environment: namespace:stats> how can I get at the code, if it is R-code? For Methods one should be able to learn what extension to use, but here default or such do not help. Is there a wayplot.default to learn which different versions of
2011 Aug 22
3
automatic file input
Dear all, I have 100 files which are used as input.and I have to input the name of my files again and again.the name of the files are 1.out, 2.out......100.out. I want to know if there is anything like perl so that i can use something like this- for($f = 1; $f <= 100; $f++) { $file = $f.".out"; I have tried this thing in R but it does not work.Can somebody please help me.
2007 Oct 25
2
Novice programing question
Hi all, I apologize for the ignorance implicit in this question, but I'm having a hard time figuring out how R functions work. For example, if I wanted to write a function to compute a variance, I would do something like >my.var <- function(x) (sum(((x-mean(x)))^2))/(length(((x-mean(x))) ^2)-1) And this seems to work, e.g., > my.var(V1) [1] 116.1 > var(V1) [1] 116.1
2013 Mar 14
1
ggplot2 problem
Hello all! I have a problem with ggplot2 library. I want to do an heat map and the y variables are the year months. If I use the following code, he y values are in alphabetical order, but I want it in month order. The code is: library(reshape) library(ggplot2) library(scales) p <- ggplot(data.m, aes(variable, Month)) + geom_tile(aes(fill = value),
2000 Sep 19
1
Re: more experience with formulas
>>>>> "WSt" == Werner Stahel <stahel@stat.math.ethz.ch> writes: [to me privately] WSt> I do not want to call this a bug, but it bugged me. Please try the WSt> following: WSt> tform <- sqrt(RADAI) ~ sqrt(RADAI.e) + TAGE.ej + SPITAL + ARZT + DAS28 + WSt> SJC + TJC + DGA + HAQ + PGA + PAIN + YEAR.SYM + YEAR.DIA + WSt> ALTER +
2011 Feb 11
6
linear models with factors
i am trying to fit a linear model with both continuous covariates and factors. When fitted with the intercept term the first level of the factor is treated by R as intercept and the estimate of the effects of remaining levels(say i th level) are given as true estimate of i th level - estimate of 1st level.can any please help me? thanks in advance..... -- View this message in context:
2011 Nov 11
1
(no subject)
Hello. I have this matrix: cy [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.0000000 -0.5164570 -0.5164087 -0.4004139 -0.4003719 [2,] 1.0000000 1.0000000 -0.5164570 -0.5164087 -0.4004139 -0.4003719 [3,] -0.5164570 -0.5164570 1.0000000 1.0000000 -0.1186691 -0.1186972 [4,] -0.5164087 -0.5164087 1.0000000 1.0000000 -0.1186995 -0.1187276 [5,]
2011 Feb 04
4
aggregate function - na.action
Can someone please tell me what is up with na.action in aggregate? My (somewhat) reproducible example: (I say somewhat because some lines wouldn't run in a separate session, more below) set.seed(100) dat=data.frame( x1=sample(c(NA,'m','f'), 100, replace=TRUE), x2=sample(c(NA, 1:10), 100, replace=TRUE), x3=sample(c(NA,letters[1:5]), 100, replace=TRUE),
2011 Mar 11
4
Any existing functions for reading and extracting data from path names?
Hi helpeRs, I have inherited a set of data files that use the file system as a sort of poor man's database, i.e., the data files are nested in directories that indicate which city they come from. For example: dir.create("deleteme") for(i in paste("deleteme", c("New York", "Los Angeles"), sep="/")) { dir.create(i) for(j in
2017 Jun 26
3
Jagged ROC curves?
Hi, I was trying to draw some ROC curves (prediction of case/control status), but seem to be getting a somewhat jagged plot. Can I do something that would 'smooth' it somewhat? Most roc curves seem to have many incremental changes (in x and y directions), but my plot only has 4 or 5 steps even though there are 22 data points. Should I be doing something differently? How can I provide a
2010 Jan 25
1
reshape package cast() function
Hi all, I think I'm cracking up. Please help me understand why I'm getting different results with m.test and m.test2 in the example below. > library(reshape) Loading required package: plyr > > m.test <- data.frame(id = factor(rep(1:10, 2)), variable=rep(c("var1","var2"),10), value=rnorm(20)) > cast(m.test, ...~variable, value="value") ## cast
2011 Feb 21
2
Equivalent of log file in R?
Hi everyone, Is there a way to make R save the workspace output (just the results, not the objects themselves) as you go? I'm running analysis that takes a long time to run and I want to be able to interrupt it without losing all the output to date. Is there an alternative to putting "save.image()" commands after every couple lines of code? Best, Tatyana