similar to: How to convert "c:\a\b" to "c:/a/b"?

Displaying 20 results from an estimated 11000 matches similar to: "How to convert "c:\a\b" to "c:/a/b"?"

2012 Feb 29
1
Replace back slashes with forward slashes?
Hello, All: What can people tell me about converting back slashes to forward slashes in character strings? Several years ago, Prof. Ripley provided a solution, which I lost and have not been able to find. Below please find a function to do this. I do not find this very satisfactory, however, because it uses "scan" and therefore operates on an input not a
2005 Apr 29
2
postscript() filenames with forward slashes cause abort
My newly installed R-2.1.0 apparently doesn't like forward slashes in filenames: > R.version.string [1] "R version 2.1.0, 2005-04-18" > plotfile <- "\home\mean_monthly_stl.eps" > postscript(plotfile) > plotfile <- "/home/mean_monthly_stl.eps" > postscript(plotfile) *** glibc detected *** double free or corruption (!prev): 0x098e7180 *** Abort
2005 Aug 18
0
[SPAM] - Re: How to assess significance of random effect in lme4 - Bayesian Filter detected spam
Actually, I re-read the post and think it needs clarification. We may both be right. If the question is "I am building a model and want to know if I should retain this random effect?" (or something like that) then the LRT should be used to compare the fitted model against another model. This would be accomplished via anova(). In other multilevel programs, the variance components are
2005 Sep 22
0
FW: FDR analyses: minimum number of features
Dear Dr. Graves Many thanks for your response. FDRs and their associated q values do differ from Type I error rates and P values (See Storey and Tibshirani PNAS 2003;100:9440-5). It is an approach that is rapidly gaining popularity in the analysis of genomic data where we have massive numbers of covariates measured on a comparatively modest number of subjects. To my mind it is a real advance
2013 Nov 17
4
quotation marks and scan
Dear R People: I'm sure that this is a very simple problem, but I have been wresting with it for some time. I have the following file that has the following one line: CRS("+init=epsg:28992") Fair enough. I scan it into R and get the following: > u [1] "CRS(\"+init=epsg:28992\")" > gsub(pattern='\"',replacement='"',x=u) [1]
2005 Nov 23
1
qbinom returns NaN
Hi, All: For most but not all cases, qbinom is the inverse of pbinom. Consider the following example, which generates an exception: > (pb01 <- pbinom(0:1, 1, .5, log=T, lower.tail=FALSE)) [1] -0.6931472 -Inf Since "lower.tail=FALSE", Pr{X>1} = 0 in this context, and log(0) = -Inf, consistent with the documentation. However, the inverse of this does NOT
2005 Nov 11
3
no package 'Matrix' at the repositories
Yesterday, I installed R2.2.0 for Windows [Version 2.2.0 (2005-10-06 r35749)]. Unfortunately, 'install.packages("Matrix")' produced the following message: Warning in download.packages(pkgs, destdir = tmpd, available = available, : no package 'Matrix' at the repositories I installed lme4, maps, mapproj, CircStats, scatterplot3d, gregmisc, Hmisc without
2005 Aug 04
1
Counterintuitive Simulation Results
I wonder if someone can help me understand some counterintuitive simulation results. Below please find 12 lines of R code that theoretically, to the best of my understanding, should produce essentially a flat line with no discernable pattern. Instead, I see an initial dramatic drop followed by a slow rise to an asymptote. The simulation computes the mean of 20,000 simulated trajectories
2005 Jun 26
1
better code?
Hi, Laura: How about the following: > sapply(x1.df, class) d x y "factor" "numeric" "numeric" > (byLH <- by(x1.df[-1], x1.df$d, var)) x1.df$d: 1/1/2005 x y x 1.272688 -0.783719 y -0.783719 0.884866 ------------------------------------------------------------- x1.df$d: 1/15/2005 x y x
2009 Feb 01
3
IMAP Authentication
Does anyone have any experience using an IMAP server to authenticate Samba users? The idea is to control viability and read/write access to file/print services using an Internal only email server. Thanks, John
2016 Oct 08
0
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Have you tried "optimx" package that John Nash and I wrote? The main purpose is to be able to readily compare multiple optimizers on a particular class of problems and see which one seems to do the best. It doesn't include nloptr, but most other optimizers are there. Ravi ________________________________________ From: R-devel <r-devel-bounces at r-project.org> on behalf of
2016 Oct 08
0
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Hi Spencer: See the link below about L-BFGS-B below because I had problems with it a good while back (and I think the link description is the cause but I can't prove it ) so eventually I moved to the Rvmmin(b) package. It's a package but really an algorithm. Rvmmin(b) uses a variable-metric algorithm similar to that of L-BFGS-B but without the problem below. It's not surprisingly a
2005 Jan 19
4
How to replace slashes with back slashes
Dear R-helpers I am running R2.0.0 under Windows 2000. I am compiling a number of file paths into a simple text file that will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work. > gsub('/', '\\',
2005 Jun 29
2
How to convert "c:\a\b" to "c:/a/b"
I couldn't resist adding a more literal answer unback <- function(x) { chars <- unlist(strsplit(deparse(x),"")) chars <- chars[-c(1,length(chars))] paste(gsub("\\\\","/",chars),collapse="") } unback("\n") | David Duffy (MBBS PhD) ,-_|\ | email: davidD at qimr.edu.au ph:
2005 Jun 29
2
How to convert "c:\a\b" to "c:/a/b"
I couldn't resist adding a more literal answer unback <- function(x) { chars <- unlist(strsplit(deparse(x),"")) chars <- chars[-c(1,length(chars))] paste(gsub("\\\\","/",chars),collapse="") } unback("\n") | David Duffy (MBBS PhD) ,-_|\ | email: davidD at qimr.edu.au ph:
2005 Nov 03
1
ML optimization question--unidimensional unfolding scalin g
Alternatively, just type debug(optim) before using it, then step through it by hitting enter repeatedly... When you're done, do undebug(optim). Andy > From: Spencer Graves > > Have you looked at the code for "optim"? If you > execute "optim", it > will list the code. You can copy that into a script file and walk > through it line by line to
2007 Jan 03
4
over 200 queues, anyone?
Hello list, one of our clients is going to be deploying a system with over 200 differently composed queues and 100 agents. We are going to do a full test of the viability of this solution before deployment, but I was wondering if anyone has experience of such a setup and if there are any obvious problems or no-nos. Any suggestion welcomed, l. -- Home of QueueMetrics -
2009 May 12
1
Two-way Anova
Hello, I'm trying to do a comparsion on a large scale say 10L bottle of liquid and a small scale bottle of liquid 0.5L, I have 5 different samples from each and they are measured over the space of 8 days as % viability and the % viability decreases over time. However not all 10 samples got measured every day. How would I do a two-way anova on this in R? Thanks for any help. Regards, Al
2006 Jan 04
7
Replacing backslashes with slashes
Hello, I've seen this question asked in the archives but no clear reply or solution provided. So, just to be sure it is not possible in R: Can I replace backslashes with slashes in a string ? I am writing a GUI for R with the Rpad library. I have a "browse" button for data loading and Windows return a path string with backslashes. I need to convert them into slashes to use the
2015 Aug 27
2
Proposed change in file.exists() to tolerate Windows
I'm writing to ask if R Core would make file.exists more Windows tolerant when the argument has a trailing slash. This has been discussed by users a few times here, I know it is not a new topic. But it is not a solved problem, yet. I acknowledge that CRAN packages exist which fix this by replacing file.exists(), but it seems more elegant to me to fix the problem in R itself. R Core goes to