search for: a296180

Displaying 20 results from an estimated 46 matches for "a296180".

2001 Jun 04
0
Problems with environmental variables set with Sys.putenv
...DE") MODE "PRODUCTION" ################## So far, so good. Loading a dataframe shouldn't, I think, effect the setting of an environment variable under any (?) circumstances. Just to be sure, I load it a couple more times. ################# > load("/home/a296180/data/latest/R/Factors.Rdata") > Sys.getenv("MODE") MODE "PRODUCTION" > load("/home/a296180/data/latest/R/Factors.Rdata") > Sys.getenv("MODE") MODE "PRODUCTION" ################# Now I change the setting of the env...
2001 Nov 06
1
R CMD check, undoc and package checking
...en trying to track down a problem. For example, I occasionally see error messages when running R CMD check like the following: [...] * checking Rd files ... OK * checking for undocumented objects ... ERROR * in parse(file, n, text, prompt) : syntax error on line 932 * in undoc(dir = "/home/a296180/tmp/pyri.port") : At this point, I want to go look at line 932 of some file. Question 1: Where is this file? I wonder if this is connected to the tendency of R CMD check to delete files when it finishes, even when there is an error. Going well beyond my level of technical competence, I see i...
2002 Apr 22
2
skipping specific rows in read.table
...ent, since I don't have complete control over the format of these files, my options may be limitted. I would certainly love to hear about any XML/R success stories.] In any event, I can easily use the "skip" argument to read.table to ignore the first row. > read.delim("/home/a296180/tmp/junk.txt", skip = 1) short.name.1 short.name.2 1 1 7 2 2 8 3 3 9 Is there a similar trick for ignoring the second row? That is, I want to produce a dataframe that looks like: a.long.but.complete.name a.different.comple...
2002 Apr 08
2
subsetting with NA's
Hi, I often have large dataframes with many variables and many NA's, from which I would like to subset out some rows. Here is a toy example: > x <- data.frame(a = c("x", "y", "z"), b = c(1, NA, 5)) > x a b 1 x 1 2 y NA 3 z 5 I realize that, if I know the values in x$b that I want to subset, things are easy: > x[x$b %in% c(1),] a b 1 x 1
2001 Nov 29
3
package argument to library as string
The help page for library says that: package, help: name or character string giving the name of a package. Yet, I don't seem to be able to use a string variable here. > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status major 1
2002 May 14
0
FW: Summary of Suggestions for poor man's parallel processing
.../downloads or getting it from the sourceforge snippet library https://sourceforge.net/snippet/detail.php?type=snippet&id=101149. -Greg > -----Original Message----- > From: Warnes, Gregory R [mailto:gregory_r_warnes at groton.pfizer.com] > Sent: Monday, May 13, 2002 10:15 AM > To: a296180 at mica.fmr.com; r-help at stat.math.ethz.ch > Subject: RE: [R] Summary of Suggestions for poor man's parallel > processing > > > > A couple of years ago I wrote a PERL script for distributing > tasks across as > set of machines. It's available at > http://ww...
2002 May 20
1
(PR#1577) is.na<- coerces character vectors to be factors
...lly ambiguous, but follow common use as if list ## el(x,i) <- value is the preferred approach and S4 does not do the conversion. I don't understand the comment, as > get("el<-") .Primitive("[[<-") and so el<- just calls [[<- .... On Mon, 20 May 2002 a296180@mica.fmr.com wrote: > I am not sure if this is a bug within is.na<- or if it lies deeper in the > dataframe construction process. Indeed, perhaps it is not a bug at all (in > which case I would suggest that the help page for NA be provided with a warning > for unsuspecting users (li...
2002 Apr 30
3
rbind'ing empty rows in dataframes in 1.4.1 versus 1.5.0
Hi, In 1.4.1, I was able to create extra "empty" rows in a dataframe as so: > x <- data.frame(a = letters[1:3], b = 1:3) > x a b 1 a 1 2 b 2 3 c 3 > x[4,] a b NA NA NA > rbind(x, x[4,]) a b 1 a 1 2 b 2 3 c 3 NA NA NA > R.version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6
2001 Jul 11
1
Summary of Forcing variables types when using read.table
Thanks to Martyn Plummer and Vele Samak for taking the time to answer my problem. scan certainly will do the trick. However, having taken a look at the code for read.table, it seems to me that I might be able to add in a "what" argument and then just pass it down to the call to scan. But that won't be today's project . . . Dave Kane
2001 Oct 04
1
Bug when trying to save a character vector with an embedded / (PR#1115)
Here is an example involving "VIA\B". > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status major 1 minor 3.0 year 2001 month 06 day 22 language
2001 Oct 04
1
Strange behavior with saved character vectors containing a slash
I am seeing some strange behavior using save on a character vector containing a slash. If this is a bug, I will happily submit it (as a single entry! ;-) ) to r-bugs. Here is an example involving "VIA\B". > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status
2002 Jul 10
1
bug in all.equal.character (PR#1767)
There is a bug in all.equal.character: > all.equal.character(c("A", "B", "C"), c("A", "B", "C")) [1] TRUE > all.equal.character(c("A", "B", "C"), c("A", "B", NA)) Error in sum(out) : Object "out" not found > traceback() 3: sum(out) 2: paste("`is.NA' value
2002 May 21
1
I() fails on objects of class POSIXct (PR#1587)
Although the documentation is somewhat sketchy, I() can be used to create objects of class AsIs: > I("a") [1] "a" attr(,"class") [1] "AsIs" "character" > I(4) [1] 4 attr(,"class") [1] "AsIs" "numeric" > I(4 + 0i) [1] 4+0i attr(,"class") [1] "AsIs" "complex" > This
2002 May 22
1
R CMD check fails if Depends field includes a package with a `.' in it (PR#1591)
R CMD check fails when the Depends field in the DESCRIPTION file includes a single package with `.' in the name. * checking for file 'financials/DESCRIPTION' ... OK * checking package directory ... OK * checking DESCRIPTION Package field ... OK * checking DESCRIPTION Version field ... OK * checking DESCRIPTION License field ... OK * checking DESCRIPTION Description field ... OK *
2002 Jan 15
2
1.4.1 release date
Has the likely release date for R 1.4.1 been set? Apologies if there is some obvious place on the web site that I could have looked this up at. We are eager to upgrade to 1.4, but some of the bugs matter to us. We have played around with the patched code, but have mainly succeeded in demonstrating that we need to learn more about UNIX code development . . . Thanks to all for a most excellent
2001 Oct 04
1
Problems merging with POSIXct objects and all = TRUE
I am having problems using merge with all = TRUE when one of the dataframes has objects of class POSIXct. If this is a bug, let me know and I will report it to r-bugs. Here is an example: > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status major 1
2001 Aug 31
1
--quiet flag sets echo option to TRUE (PR#1083)
The help for options says: echo: logical. Only used in non-interactive mode, when it controls whether input is echoed. Command-line options `--quiet' and `--slave' set this initially to `FALSE'. I don't think that this is correct for me. Consider the following session: mica|junk> ls test.R mica|junk> cat test.R cat("Why was this command
2002 May 29
1
merge.data.frame can coerce character vectors to factor in some circumstances (PR#1608)
If the following two conditions are met: 1) all.x is TRUE 2) at least 1 row in y does not have a match in x then any character vectors in y will be coerced to be factors. Here is a simple example (previously provided on r-devel): > x <- data.frame(a = 1:4) > y <- data.frame(b = LETTERS[1:3]) > y$b <- as.character(y$b) > z <- merge(x, y, by = 0, all.x = TRUE) > z
2002 May 10
1
Summary of Suggestions for poor man's parallel processing
Thanks to Luke Tierney, Agustin Lobo, Stephen Eglen, A.J. Rossini, Simon Wood and Timothy H. Keitt for responding to my question about poor man's parallel processing. Much of the substantive material was cc'ed to r-help already, but my take is as follows. 1) Currently, there is nothing "simple" for solving my problem. 2) I thought that Timothy Keitt's description of the use
2002 May 08
3
Suggestions for poor man's parallel processing
Almost all of the heavy crunching I do in R is like: > for(i in long.list){ + do.something(i) + } > collect.results() Since all the invocations of do.something are independent of one another, there is no reason that I can't run them in parallel. Since my machine has four processors, a natural way to do this is to divide up long.list into 4 pieces and then start 4 jobs, each of which