similar to: save() saves extra stuff if object is not evaluated

Displaying 20 results from an estimated 400 matches similar to: "save() saves extra stuff if object is not evaluated"

2006 Jun 22
2
programming advice
Dear R users I want to compute Kendall's Tau between two vectors x and y. But x and y may have zeros in the same position(s) and I wrote the following function to be sure to drop out those "double zeros" "cor.kendall" <- function(x,y) { nox <- c() noy <- c() # for (i in 1:length(x)) if (x[i]!= 0 | y[i] != 0) nox[length(nox)+1]<- x[i] for (i in
2001 Jul 17
1
How to write the bytes 00 01 00 to a file/connection?
Is there any way to write (8-bit) bytes to a file which works on all [R] platforms? I have been looking at 1) writeBin 2) writeChar 3) cat and neither of them manage to write arbitrary sequences of bytes (0-255). For instance, I would like to create a binary file of length three containing the bytes 0, 1 and 0. I [R] I have the following vector of bytes: bfr <- c(0,1,0) 1) For
2009 Jul 15
1
loading multiple .Rdata and preserving variable names
Dear R-users, I need to load outputs from multiple previous calculations into one R session for comparison and (cross-)analysis. The previous calculations are stored in different directories in .Rdata files (I don't know if this is the best storage for later usage, but the previous project could be recalculated and saved into different format, if needed, potentially.) I can load consequently
2003 Dec 30
2
Samba 3.0.1 RMP?
Hi All - "i'm new to linux" My Specs: Suse 9.0 & Windows 2003 Server (PDC) My needs: authenticating with Windows 2003 Server My Problem: Samba 2.x.x not working with Windows 2003 Server (worked with Windows 2000 Server!?) My Solution: Try Samba 3.0.1... Unfortunately - I could noy locate a RPM for Samba 3.0.1 so far... Have any one got any idea where I would be able to
2008 Aug 29
1
nls() fails on a simple exponential fit, when lm() gets it right?
Dear R-help, Here's a simple example of nonlinear curve fitting where nls seems to get the answer wrong on a very simple exponential fit (my R version 2.7.2). Look at this code below for a very basic curve fit using nls to fit to (a) a logarithmic and (b) an exponential curve. I did the fits using self-start functions and I compared the results with a more simple fit using a straight lm()
2007 Dec 31
1
readBin differences on Windows and Linux/mac
I have been trying to use the gunzip function in the R.utils package. It opens a connection to a gzfile, uses readBin to read from that connection, and then uses writeBin to write out the raw data to a new file. This works as expected under linux/mac, but under Windows, I get: Error in readBin(inn, what= raw(0), size = 1, n=BFR.SIZE) : negative length vectors are not allowed A simple
2010 Oct 06
1
R getting slower until it breaks...
Hello R-users, I'm currently facing a pretty hard problem which I'm hopping you'll be able to help me with. I'm using R to create images. That alone is not the problem, the problem is that I'm using R to create 168 000 images... My code (which is given below) use different package (raster and rgdal) to import a image (size 20gig) and divide it into 168 000 pictures that are
2007 Oct 15
2
Digest package - make digest generic?
On 10/15/07, Henrik Bengtsson <hb at maths.lth.se> wrote: > [As agreed, CC:ing r-devel since others might be interested in this as well.] > > Hi. > > On 10/15/07, Dirk Eddelbuettel <edd at debian.org> wrote: > > > > Hi Hadley, > > > > On 15 October 2007 at 09:51, hadley wickham wrote: > > | Would you consider making digest a generic
2002 Oct 29
1
ip conflict with proxy arp
HI, I''ve got a proxy arp setup with iptables and tc. on eth0 i have a route to 172.16.2.0/24 network on eth1 is the LAN of 172.16.1.0/24 network I have enabled proxy arp on both interfaces. Now accordingly, the interface will respond to all ARP requests for which it has a route to. Noy my setup is such, that a user on the LAN, would like to have an ip from the 172.16.2.0/24 network.
2010 Oct 16
1
Another wireless problem
Hi folks I have my Linksys WUSB54GC USB wifi card already working. Now I have another issue. Accidentally I tuned off my AP, and when switched it on again my wireless link is still down. I have to unplug the USB card and plug it again to get it working again. I'm new in wireless matter but this doesn't sounds logical to me. What if I loose the link for whatever reason? Should I have to
2007 Dec 10
4
Reading through a group of .RData files
Hi. I have a procedure that reads a directory, loops through a set of particular .RData files, loading each one, and feeding its object(s) into a function, as follows: cvListFiles<-list.files(fnDir); for(i in grep(paste("^",pfnStub,".*\\.RData$",sep=""),cvListFiles)){ load(paste(fnDir,cvListFiles[i],sep="/")); myFunction(rliObject); rm(rliObject); };
2013 Apr 04
2
R 3.0.0: wrong MD5 checksums for Windows?
Hello dear R-devel, When installing R 3.0.0 on Windows 7, and then running: require(tools) checkMD5sums(dir=R.home()) I get the following massage: files ‘etc/Rconsole’, ‘etc/Rprofile.site’ have the wrong MD5 checksums [1] FALSE This happens when using the 32 and the 64 bit version of R. And was also reported by 2 other users on other machines, as can be seen in the comments to this post:
2010 Dec 22
3
Estimate "between-axes" vs "within-axes heterogeneity of multivariate matrices
Hi! My question(s) in the end might be silly but I am no expert on this, so here it goes: Noy-Meir (1973), Pielou (1984) and a few others have pointed to non-centered PCA being in some cases useful. They clearly explain that "it is the case" when multi-dimensional data display distinct clusters (which have zero, or near-zero, projections in some subset of the axes) and the task is
2013 Apr 01
1
missing exported methods when compiling vignettes in R 3.0.0 RC
A new problem has cropped up with compiling vignettes for my package BayesFactor. I'm not sure when it started, but I can tell you it didn't occur on R 2.15.3, and it does on 3.0.0 RC (2013-03-31 r62463) (session info is at the bottom of this message). I have defined methods for which.min and which.max for a class (I've defined both S3 and S4 methods for the class
2012 May 01
2
Question about expand.grid function in R
Hi, I am extremely new to R, and was wondering if someone would be able to help me with a question regarding the expand.grid function. When I input expand.grid.rep <- function(x, n=1) do.call(expand.grid, rep(list(x),n)) expand.grid.rep(c("a", "b", "c"), 3) my output is as follows, Var1 Var2 Var3 1     a    a    a 2     b    a    a 3     c    a    a 4     a  
2014 Jan 07
0
file.info() on a file.symlink():ed file on Windows - is help correct?
Is the following passage from help("file.info"): "Junction points and symbolic links are followed, so information is given about the file/directory to which the link points rather than about the link." correct? Could it be that Windows was not considered? help("file.symlink") mentions several Windows-related issues, but none of those are related to the following.
2008 Feb 27
2
Unix-like touch to update modification timestamp of file?
Hi, is it possible to update the modification time stamp of a file using R (on file systems supporting it)? It is sufficient to update the modification time to the current time. The best I can do for now is: touchFile <- function(pathname, ...) { if (!file.exists(pathname)) stop("No such file: ", pathname); info <- file.info(pathname); if (info$isdir)
2005 Sep 09
9
adding DNIS digits
Situation: 8 POTS lines, 3 companies, 1 system. Channel banking the POTS lines onto a T1 thru an ADIT 600. The only way our carrier will provide DNIS is thru Analog DID #'s. Anyone know of a piece of hardware that can add DNIS digits to a particular line? -Darren
2015 Feb 01
2
Output to "raw console" rather than stdout/stderr?
In R, there's readline(), which is great because you can prompt the user, e.g. ans <- readline("Would you like to install Pandoc? [y/N]: ") without having to worry the message is intercepted by capture.output(), sink() or similar (which is used by dynamic report generators among other things). The message will always reach the user. (You can use sink(...,
2003 Apr 14
0
ADS Support
Hi, i just compiled and installed samba-3.0-alpha23 ! I have a problem and i can't figured out why ! :) When i configured the sources, i use : ./configure --with-ads --with-ldap --with-pam_smbpass --with-ldapsam --with-tdbsam --with-winbind make make install all goes ok, except for some warning and compilation error...dues to younh alpha release. BUT : 1- One : when i try to use the