similar to: write.table(NULL)

Displaying 20 results from an estimated 20000 matches similar to: "write.table(NULL)"

2004 Jun 23
5
assigning from multiple return values
I know that if I have a function that returns multiple values, I should do return(list(foo, bar)). But what do I do on the recieving end? fn <- function(x) { return(list(foo, bar)) } I know that at this point I could say values.list <- fn(x) and then access values.list[1] values.list[2] But that's hideous. I'd rather be able to say something like list(local_foo, local_bar)
2016 May 24
2
Suggestion: mkString(NULL) should be NA
On Tue, May 24, 2016 at 9:30 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote: > On Tue, May 24, 2016 at 5:59 PM, Gabriel Becker <gmbecker at ucdavis.edu> > wrote: > > Shouldn't Rf_mkString(NULL) return (the c-level equivalent of) > character() > > rather than the NA_character_? > > No. It should still be safe to assume that mkString() always returns
2011 Mar 03
3
R usage survey
Hi R users, I request members of the R community to consider filling a short survey regarding the use of R. The survey can be found at http://goo.gl/jw1ig Please accept my apologies for posting here for a non-technical reason. The data collected will be suitably analyzed and I'll post a link to the results in the coming weeks. Thank you all for your interest and for sharing your R usage
2004 Nov 29
2
proper way to process dataframe by rows
This is a best practices / style question. The way I use RODBC is I something like this: > foo <- sqlQuery(db, "select * from foo") > apply(foo, 1, function{...}) That is, I use apply to iterate over each result -- row -- in the RODBC-produced dataframe. Is this how one generally wants to do this? My concern is that when apply iterates over the rows, it uses as.matrix()
2009 Sep 16
4
a sequence that wraps around
I'd like to have something like seq() where I can pass in a length of the desired sequence and a right limit so that the sequence goes up to the limit and then starts again from 1. # works now seq(from=2, length.out=3) [1] 2 3 4 # what I want seq(from=2, length.out=3, rlimit=3) [1] 2 3 1 # additional examples of what I want seq(from=2, length.out=4, rlimit=3) [1] 2 3 1 2 seq(from=2,
2004 Jul 29
2
unwanted as.integer
> a <- sqlQuery(irrdb, "select count(field) from mytable where field = 1") > print(a) count(field) 1 8 > paste(a) [1] "as.integer(8)" Why the as.integer() representation? I later pass the result into this write.html.table(), and what I get is rows of as.integer()... when all I want is the integer itself. as.integer(31) as.integer(21)
2019 Jun 02
1
[PATCH] drm/nouveau/bios: downgrade absence of tmds table to info from an error
Absence of a TMDS Info Table is common on Optimus setups where the NVIDIA gpu is not connected directly to any outputs. Reporting an error in this scenario is too harsh. Accordingly, change the error message to an info message. By default the error message also causes a boot flicker for these sytems. Signed-off-by: Rhys Kidd <rhyskidd at gmail.com> ---
2016 May 25
2
Suggestion: mkString(NULL) should be NA
On Wed, May 25, 2016 at 12:31 PM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > Better than segfaulting, yes, but really agree with Bill (and > Gabe), also for Rf_mkChar(NULL): > I think both functions should give an error in such a case > rather than returning NA_character_ > > It is an accident of some kind if they got NULL, no? Not necessarily. A char* of
2004 Oct 19
2
Matrix/Table col headings R 2.0.0
I have been looking at some 'table' examples in Peter Dalgaard's ISwR book, and I am confused by how to get right justification of my table headings when I use the tables() command. Compare the following: # Produces right justfified column names caff.marital=matrix(c(652,1537,598,242,36,46,38,21,218,327,106,67),nrow=3,byrow=T)
2009 Aug 29
2
RFE: vectorize URLdecode
In R 2.9.2, > URLdecode(c("a%20b", "b%20c")) [1] "a b" Warning message: In charToRaw(URL) : argument should be a character vector of length 1 all but the first element will be ignored Could URLdecode be modified to actually process all elements of the vector, not just the first? Thanks in advance
2011 Nov 25
2
perfectionism
I have a named vector: > z <- c(1, 2, 3, 2) > names(z) <- c("a","b","c","b") > f <- c("b","c") I want to know the index in z of the first occurrence of each of the values in f. One implementation is > sapply(f, function(x) which(names(z)==x)[1]) b c 2 3 Is which() smart enough to stop when it finds in z the
2011 Sep 29
1
Fwd: Re: VirtFS Query
Richard, FYI. On Wed, 28 Sep 2011 17:05:42 +0530, Harsh Bora <harsh at linux.vnet.ibm.com> wrote: > Hi Aneesh, > > Richard asked me if we have any plans to provide a solution for this use > case: > > https://www.redhat.com/archives/libguestfs/2011-September/msg00089.html > > IIUC, VirtFS as a rootfs is targeted towards this requirement only, > right? Any inputs ?
2010 Jul 01
4
Index of Character
Hi, I am a newbie to R and this may be too simple to ask. I am trying to find out a string function in R that returns the index of a character. For e.g. indexOf("Test1234", '4') would return 8. Is there a similar function in R. I tried searching the documentation and could find other useful string functions, but not the index function. Thanks in advance. Regards, Harsh
2017 Oct 04
3
Samba upgrade from 4.6 to 4.7
On Wed, 4 Oct 2017 09:08:30 -0400 lingpanda101 via samba <samba at lists.samba.org> wrote: > On 10/4/2017 3:59 AM, Harsh Kukreja via samba wrote: > > Hello > > > > I have a Samba 4.6.7 server installed with the sernet package on > > Ubuntu 12.04 precise which I like to upgrade to 4.7 and also I want > > to do a release upgrade for Ubuntu from 12.04 to 14.04.
2003 Jul 28
3
Problem with rpcclient command
Hi, I am trying to query a W2K PDC for info on a print driver by issuing the following command: rpcclient -Uxxx%yyy -d 3 -c 'getdriver "HP LaserJet 8000 Series PS"' abert The response I get is: Initialising global parameters params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf" Processing section "[global]" added interface
2017 Oct 04
3
Samba upgrade from 4.6 to 4.7
Hello I have a Samba 4.6.7 server installed with the sernet package on Ubuntu 12.04 precise which I like to upgrade to 4.7 and also I want to do a release upgrade for Ubuntu from 12.04 to 14.04. Before I continue I like know if I should first do a release upgrade for Ubuntu or do I have to upgrade Samba to 4.7 first and then run the release upgrade. Thanks n Regards *Harsh Kukreja *Systems
2010 Apr 25
4
Image into Excel file from R
Hi useRs, I would like to know what R users are employing to get their images/plots created in R, into Excel sheets. I am aware of the various packages (xlsReadWrite, RODBC) to get data frames into R, but I would like to copy images too. Thank you for any help in solving this problem. Regards, Harsh Singhal
2008 Dec 09
4
Pre-model Variable Reduction
Hello All, I am trying to carry out variable reduction. I do not have information about the dependent variable, and have only the X variables as it were. In selecting variables I wish to keep, I have considered the following criteria. 1) Percentage of missing value in each column/variable 2) Variance of each variable, with a cut-off value. I recently came across Weka and found that there is an
2018 Jan 09
2
Replication Error
Hi Denis Thanks for your response without your crystal ball. I have increased the log level =9 dns:0 on both the servers. It replicates successfully by manually running the command samba-tool drs replicate SERVER2 SERVER1 dc=iumnet,dc=edu,dc=na --full-sync but it is still failing when I check from the samba-tool drs showrepl Also I run samba-tool dbcheck --cross-ncs --fix on both the servers
2018 Jan 11
4
Cannot remove offline domain
Hi I am trying to remove a dead offline domain using the below command which is failing samba-tool domain demote --remove-other-dead-server=IUMONG-RODC -UAdministrator ERROR: Demote failed: DemoteException: IUMONG-RODC is not an AD DC in iumnet.edu.na A transaction is still active in ldb context [0x2bf15b0] on tdb:///var/lib/samba/private/sam.ldb IUMONG-RODC domain is still visible under domain