Re: [R] R on Android

2012-01-02 Thread Andreas Borg
Ken Hutchison schrieb: If stranded on a desert island and getting R fully functional on Droid would save you, I'd advise looking for food; else be prepared to name your phone Wilson. Ken Hutchison I propose to add that to fortunes :-D Andreas Borg -- Andreas Borg Abte

Re: [R] help in dbWriteTable

2011-12-02 Thread Andreas Borg
Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Abteilung Me

[R] Gui editor / viewer for large data

2011-07-14 Thread Andreas Borg
element to view and potentially edit data - which only loads as much of the data as it displays at one point in time, - thereby able to handle datasets that are too large to fit into main memory Thanks for any suggestions, Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN de

Re: [R] How to remove last 3 letters

2011-07-13 Thread Andreas Borg
estions are highly appreciated __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andrea

Re: [R] Compiling C-code in Windows

2011-05-31 Thread Andreas Borg
dll C:\trial.c' under Linux, and expecting working DLL? Of course not, because Windows and Linux libraries differ by more than the filename extension. Once everything is set up, compiling in windows is pretty easy thanks to the toolset. Good luck, Andreas -- Andreas Borg Medizinische

Re: [R] Options for print()

2011-05-05 Thread Andreas Borg
stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Med

Re: [R] user input

2011-04-20 Thread Andreas Borg
t; b <- readline(prompt="select number ") select number 0.2## in the console, not really visible b [1] "0.2" I would like both "free" input and a pop-up window. Is there a function for this? Thanks in advance, Ivan -- Andreas Borg Medizinische Informatik

[R] Sweave stops when opening X11 device fails

2011-04-20 Thread Andreas Borg
I think it would be nice if the script just kept on running without plotting on the screen if opening X11 fails, just like it does when no X11 is available at all. Best regards, Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut f

Re: [R] Where did my packages go ?

2011-04-19 Thread Andreas Borg
listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Medizinische Bio

Re: [R] mapply to lapply

2011-04-18 Thread Andreas Borg
owInd,3],e=cells[rowInd,5]))) Error in paste("f", i, j, "(a,b,c,d)", sep = "") : argument "i" is missing, with no default What do you think I should try out now? Vielen Dank Alex --- On Mon, 4/18/11, Andreas Borg wrote: From: Andreas Borg Subj

Re: [R] mapply to lapply

2011-04-18 Thread Andreas Borg
ailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Unive

Re: [R] How do I make this faster?

2011-04-11 Thread Andreas Borg
, row.names=F, col.names=F) rm('currencies', 'correlations', 'values', 'fx', 'string') return() } lagtime <- as.integer(commandArgs(trailingOnly=T)[3]) if (is.na(lagtime)) lagtime <- 1 print(paste(Sys.time(), '<--- starting'

Re: [R] random sampling with levels and with replacement

2011-04-08 Thread Andreas Borg
/www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Medizinische Biometrie, Epidemiologie und Informatik Obere Zahlbacher Straße 6

Re: [R] Assign Names of columns in data.frame dinamically

2011-04-01 Thread Andreas Borg
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZ

Re: [R] a for loop to lapply

2011-03-30 Thread Andreas Borg
ease make sure your examples are self-contained and executable (i.e. they don't throw an error and they do not depend on undefined variables, such as dimx etc. in this case) Best regards, Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität I

Re: [R] RSQLite to input dataframe

2011-01-04 Thread Andreas Borg
with dbWriteTable. There might be a way to read files directly from SQLite, but I don't know about that. Best regards, Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Medizinische Biometrie, Epidemiologie und Inf

Re: [R] How to find out if a data frame has automatic row names?

2010-12-07 Thread Andreas Borg
That does it. Thanks! Check ?.row_names_info Peter Ehlers Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Medizinische Biometrie, Epidemiologie und Informatik Obere Zahlbacher Straße 69, 55131 Mainz www.imbei.uni

[R] How to find out if a data frame has automatic row names?

2010-12-07 Thread Andreas Borg
mes(df2) [1] "1" "2" > # when converting to a matrix, it makes a difference > as.matrix(df) a b [1,] 1 3 [2,] 2 4 > as.matrix(df2) a b 1 1 3 2 2 4 Thanks for any suggestion, Andreas -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-

Re: [R] Performance tuning tips when working with wide datasets

2010-11-29 Thread Andreas Borg
inal data. I am not sure if this works with other database engines (there are a couple of database interfaces on CRAN); when I tried to use RPostgreSQL, it created the whole result set at once, leading to the same memory problem. Maybe that behavior can be changed by some config variable. Best re

[R] read.table / type.convert: Unexpected column class

2010-11-23 Thread Andreas Borg
x27; is treated as "other decimal or hexadecimal constant" while the leading whitespace before "2" is stripped. Actually, leaving just the trailing space after '3' without the comment gives the same result. Is there any reason for this behaviour? Best regards,

[R] Closing unreferenced result sets in dbi / RSQLite

2010-11-04 Thread Andreas Borg
hich is especially annoying when working with a temporary data base where everything is discarded on disconnection. Is there any way to create a new reference to the pending result set or to close result sets which are not bound to a variable? Thanks for any suggestion, Andreas -- Andreas

Re: [R] Sweave, cacheSweave, and data frame

2009-12-07 Thread Andreas Borg
he problem was still there when I tried to read the data in using "read.table" function. Any ideas? Many thanks. Best, Shige -- Andreas Borg Medizinische Informatik UNIVERSITÄTSMEDIZIN der Johannes Gutenberg-Universität Institut für Medizinische Biometrie, Epidemiologie und Informatik O