similar to: storing via for (k in 1:100) {}

Displaying 20 results from an estimated 10000 matches similar to: "storing via for (k in 1:100) {}"

2006 Jan 19
3
html excel file
hallo, i have a problem reading in the above mentioned kind of a file. does anybody know an easy way how to read it in? i can save it as a text file that looks like: Datum des Fixings Restlaufzeit 1 Jahr 2 Jahre 3 Jahre 4 Jahre 5 Jahre 6 Jahre 7 Jahre 8 Jahre 9 Jahre 10 Jahre 12 Jahre 15 Jahre 13.01.06 2.819 2.983 3.073 3.137 3.194 3.247 3.302 3.355 3.409 3.459 3.548 3.649 12.01.06 2.847
2006 Mar 14
1
New simpleExit() condition (Was: Re: Can example() code stop the example without generating an error?)
On 3/14/06, Uwe Ligges <ligges at statistik.uni-dortmund.de> wrote: > Henrik Bengtsson wrote: > > > Hi, > > > > does anyone know if it is possible to write example code (in Rd > > examples) such that one can stop the example without generating an > > error? Example: > > > > code A > > if (cond) > > niceStop() > > code B
2006 Apr 28
4
par(mfror=c(1,2))
dear list, i have a problem using the par function. in one graphic device i want to have two plots so i tried to use par(mfror=c(1,2)). of course it worked out, but the height now is twice the length of the width for each single plot. what i actually wanted is something like par(mfrow=c(2,2)) where only the top (or bottom) two plots are drawn with entire length proportions of 1 to 2 ( height 1,
2006 Mar 15
1
setMethod confusion -best reference for S4 programming
Thanks I think you have both answered my question (reckon Ill go S3 on that). As an adjunct to this do you know what might be the best reference to the S4 methods current implementation. I have ordered the Chambers book "Programming with Data", and I have a short tutorial-- "S4 Classes in 15 pages, more or less". Have I missed any other useful resources? Stephen Henderson
2004 Jul 27
2
Incorrect display of b[hat((a))] expression in plots
Hi, I am not sure if this is a bug or a non-implement feature of text-drawing functions with TeX-style expression, but hat() and some of its equals does not get the right "bounding boxes" if they are put in sub- or superscripts. For instance, for the expression 'b[hat(a)]' the hat() seems to shift 'hat(a)' too much to the right of 'b'. Try the below example and
2004 Mar 11
1
Is it ok to use the name on a bundle and one if its packages?
Hello, I wonder if it is unwise to name a bundle the same as one of its packages. For instance, I now have a huge package called 'aroma' that I basically want to split up in several smaller packages, say 'aroma.core', 'aroma.io', 'aroma.explore', 'aroma.trial', 'aroma.deprecated' etc, which simplifies maintenance but also the overview. For
2006 Apr 17
1
as.Date / size of par
dear list, i have a problem plotting revenue against the date. the str. of date looks like: Class 'Date' num [1:10493] -3649 -3648 -3647 -3646 -3643 ... the head looks like: [1] "1960-01-05" "1960-01-06" "1960-01-07" "1960-01-08" "1960-01-11" [6] "1960-01-12" i´d like to plot it against the years, but can´t figure out how
2006 Mar 08
1
info() function?
I would like to have some function for getting an overview of the variables in a worksheet. Class, dimesions, length, number of missing values,... Guess it wouldn't be that hard to set up such a function, but I guess there are others who have made it already. Or is it already a standard feature in the base package? Any suggestions? Robert
2006 Mar 18
2
How to divide too long labels?
Is there any possibility to divide too long text in a plot to two or more lines, when using labels-parameter in the text()-command? Here is an example picture: http://users.utu.fi/attenka/253.jpeg My example script is something like this: text(1,0.7,labels=Chordnames[fnid(pcs%%12)]) # according to Larry Solomon's table http://solomonsmusic.net/pcsets.htm Chordnames is a long vector with
2005 Nov 10
3
Remove levels
Daer All, I have a factor variable, X with 5 levels. When I type tables(X) it gives me: table(X) 1 2 3 4 5 10 5 0 0 0 How to drop the levels with zeros such that when I will type: table(X) it will give me: table(X) 1 2 10 5 Thank a lot, Bernard --------------------------------- [[alternative HTML version deleted]]
2003 Jul 13
3
Memory size
Daer all, I have the problem. I could not run the regression, because I have always the warning message "memory.size". from the help file I learned that it is possible to increase the memory size, but I did not undestand how could I do it. Could you please explaine it to me. I would be very grateful for it. The second question: I obtained from the regression the coefficient
2002 Jul 08
2
Methods/package for working with sets and intervals
Before reinventing the wheel, is there a package for working on (nice) sets and intervals, where one can for instance check if a set of intervals contains a scalar, taking the union and intersection of some intervals etc? Example: # Defining the set i = [1,2) + [3.5, 10] i <- c(1,2, 3.5, 10) attr(i, "include") <- c(TRUE, FALSE, TRUE, TRUE) x <- 0:12 # Get
2004 Oct 15
1
Building package compatible w/ R v1.9.1 and R v2.0.0?
Hi, just in the process of updating my packages for R v2.0.0 and I have not had time to followed the R v2.0.0 discussions so maybe my questions have already been answered. A concern I have is that when creating packages they should be backward compatible with R v1.9.x for a while until all users and computers has migrated to R v2.0.x. It is pretty straightforward to setup my packages so that
2004 Nov 15
1
UseMethod call with no arguments
Dear R developers, I will ask a very straightforward question concerning UseMethod's future, because people depending on my code wonder what will happen to it next. In R v2.0.1 NEWS it says o The undocumented use of UseMethod() with no argument is now formally deprecated. and in the R v2.0.1 help(UseMethod) it says 'UseMethod' accepts a call with no arguments and tries to
2006 Apr 05
1
predict.smooth.spline.fit and Recall() (Was: Re: Return function from function and Recall())
Hi, forget about the below details. It is not related to the fact that the function is returned from a function. Sorry about that. I've been troubleshooting soo much I've been shoting over the target. Here is a much smaller reproducible example: x <- 1:10 y <- 1:10 + rnorm(length(x)) sp <- smooth.spline(x=x, y=y) ypred <- predict(sp$fit, x) # [1] 2.325181 2.756166 ...
2002 Aug 18
1
Adding argument 'flush' to read.table() too...
What about adding the argument 'flush=FALSE' to read.table() for the option to ignore trailing elements on each row? This feature already exists in scan(), which is called internally by read.table(): flush: logical: if `TRUE', `scan' will flush to the end of the line after reading the last of the fields requested. This allows putting comments after the last
2004 Jun 10
1
tryCatch() and preventing interrupts in 'finally'
With tryCatch() it is possible to catch interrupts with tryCatch(). Then you can use a 'finally' statement to clean up, release resources etc. However, how can I "protect" against additional interrupts? This is a concern when the hold down Ctrl+C and generates a sequence of interrupts. Example: tryCatch({ cat("Press Ctrl+C...\n"); Sys.sleep(5); }, interrupt =
2003 Dec 09
1
Importing TIFF files into a R matrix
Hi I am facing a problem where I would like to import a TIFF image (of spots on a nylon filter) into R (into a matrix for example). When plotting the matrix using fx. scatterplot3d I would then be able to see how the pixel-intensities are distributed in "spot-areas" on the filter - which would be very helpful. Does anynone know of a way to do this? Best regards, Peter Hagedorn ...
2002 Aug 06
1
write.table() adds unnecessary spaces to right align integer column
When using write.table() to write data frames the integer columns are padded with unnecessary spaces (0x20) so that these columns are right align if you look at them in a text editor. However, I think it is quite a vast of file size. For instance, I am reading a tab-delimited 4200kb microarray data file and writing it back verbatim using write.table() and it becomes 5100kb, a 20% increase. Is this
2006 Feb 25
2
Adding header lines to a dataframe that is exported using write.csv
I would like to export a dataframe to a .csv using: >write.csv(dataframe,"dataframe.csv") but I need to add four "header" lines to the csv that are not part of the dataframe (which itself has a line of column headers). The difficulty (for me, at least!) lies in the requirement that certain elements of the header (X, Y and the number of "Q"s - please see example