similar to: Error: subscript out of bounds

Displaying 20 results from an estimated 3000 matches similar to: "Error: subscript out of bounds"

2002 Mar 01
3
Split plot in colors/pch??
Hi all This seems like a very easy question, but I have not found a simple answer to it: If you have a dataframe, how to you plot two of then in different colors depending on a third variable? All help appreciated! /Fredrik -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2002 Jun 26
4
evaluate a string
Hello together i want to execute different commands that are saved in strings (eg: "d <- 4+7" and some more complicated things). How can i execute/evaluate them. I know i could save them to a temp-file a read this with source. But is there a way without a file in the middle? I know also the 'assign' command but I think it would only the simply cases. thanks and gruess joerg
2002 Feb 26
2
last day of month values
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a stock market trading values time series. What's the best way to extract the "last day of month" values. I looked at function window() but doesn't appear suitable for this since it expects regular dates. Thank you. lukas - -- Lukas Kubin lukas.kubin at permonik.com phone: 00420603836180 -----BEGIN PGP SIGNATURE-----
2002 Jul 09
3
writing to a png file with a script
Dear R-freaks, I am new to R and loke to write plots directly to a file with a script in batch-mode. the following error occured: # writing section > x11() Error in x11() : the x11 device has not been loaded Execution halted I do not know what to do! thanks for your help cheers steph -- Linux: the operating system with a CLUE... Command Line User Environment.
2002 Jul 23
2
Converting dates?
Dear R-users I have some doubts about with converting dates... e.g. dates data 23/12/1975 0.8678 03/01/1976 0.8736 28/01/1976 0.765 13/03/1976 0,9654 ... I think that converting these dates can easily my plots... is there a R function to convert these dates to a julian dates and so plot that variables?? The help files as.POSIXlt, POSIXt and others don't aswer my doubts...
2002 Mar 13
3
plot
Hello! I use the version 1.4.0 for Windows. I have made boxplots but only half of the symbols (three letters each) show up on the X-axis? How t can one change their size or orientation so that all show up? I attach the pdf file to illustrate better the problem. Regards Martin Martin Lascoux Department of Conservation Biology and Genetics Evolutionary Biology Center Norbyv?gen 18D 75236
2002 Feb 26
2
covariance of equal date values
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I need to count the covariance of two time series. Both of them contain the dates' vector and vector of values. But the dates are not the same. It means some dates of first ts are not in the second respectively. And I need the covariance of same dates, of course. Could anyone help me, please? Thank you. lukas - -- Lukas Kubin lukas.kubin at
2002 Jul 10
3
2 simple doubts
Hello, I'm just start learning R/S-Plus, so I think this 2 doubts is going to be too easy for you... 1) I couldn't discover what is the command for a concatenation of 2 variable strings. 2) For example, if I have three variable strings, and each one has the name of a variable in a data matrix: a<-V1 b<-V2 c<-V3 , is it possible to construct a command like this:
2002 Mar 20
3
a R question
Dear Sir, I have been working with R for some time now and I am very happy with it, but I have found a problem that I could not resolve. Could you please give me some hint about how to transform POSIX time data in seconds to string format?. (eg. 995752800 -> year-month,day,hour,min, sec) I tryed with Sys.time(), strptime() and date() but without success. Thank you very much in advance
2002 May 06
4
Subtitle?
Hi, Is it possible to add a subtitle that appears directly below the main title? I tried the "sub" parameter, but it adds sub-title to the bottom of the plot. Cheers, Kevin ------------------------------------------------------------------------------ Ko-Kang Kevin Wang Postgraduate PGDipSci Student Department of Statistics University of Auckland New Zealand Homepage:
2002 Jul 03
2
Adding text to a plot
Dear R-users, again two question... # Question 1 Adding two lines of text to a plot, I am using: # ------------------------------- plot(k[,1], k[,2], pch=16, ylim=range((min(k[,2])-0.2):(max(k[,2])+1))) a <- paste("Cor.:" ,cor(k[,2],k[,1])) b <- paste(nrow(k), "Countries") text(90, max((k[,2])-0.51), a) text(90, max((k[,2])-0.83), b) #
2002 May 15
3
question about scan()
Hi, I am using the scan function to read from a file. In general the syntax I am using is as follows: scan("myfile", list(a = "", b="", c="", d=""), sep=",") The file I am trying to read contains a #< in the 'd' field. When the file is read into an object, the d field comes as "" for that particular string. I
2002 Mar 21
3
plot question
Hi! I want to display 2 graphs with different number of data points on the x-axis. The code below scales them so it seems that testtwo has the same number of data points as testone. How can I fix that? thanks. z<-1:50; x<-1:100; plot(x,testone,type="l",xlab="",ylab="",main="",lty=4,axes=FALSE,ylim=c(-1.0,1.0),cex=1); par(new=TRUE);
2002 Mar 05
3
enhanced Question to stand. Beta
Hello everybody, a question that connect to the question of Frederik Karlsons about 'how to stand. betas' With the stand. betas i can compare the influence of the different explaning variables. What do i with the betas of factors? I can't use the solution of JohnFox, because there is no sd of an factor. How can i compare the influence of the factor with the influence of the numeric
2002 Mar 20
5
inverted axis
Hello everybody! Spse I have the following X <- seq(1:100) #(a dim(100) sequence of integers 1:100 representing the possible actions of player 1 and player2 in a game) BR2X<- br2(X) #(a dim(100) sequence of points on range (1,100) representing the best response function of player 2 to player 1:s actions) BR1X<- br1(X) #(a dim(100) sequence of points on range (1,100)
2002 Jan 30
5
multiple series on same graph
I'm trying to duplicate some graphs from powerpoint in R package. One of things I'm having trouble with is I don't understand how to use the points command to create different sets of points with different color and marking attributes, and a legend on the graph. Where should I look? I can't seem to find an example of two different sets of data on the same graph.
2002 Jan 09
1
bug in read.table?
Hello, in the new Relase (1.4) i get a different (worser) result for read.table with as.is=T: it crash! Input file (t.txt, with a name, 5 character and a numeric column) Name short kind logable use save lag m "mo" "x" "n" "1" "n" 0 Ptp "PT" "l" "y" "m" "n" 0 R-Code
2001 Oct 31
3
Defining time series objects
Hi All, I am new to R, having used S-plus a number of years back. I would like to set up a time series object for forecasting, with data collected daily between 5th April 2001 and 16th September 2001. Any help would be most appreciated as I have been unable to find any suitable examples in the documentation. Thanks, Mark.
2002 Feb 22
3
storing large data.frame's
I am new on R, so I have a maybe naive question: if I have many large data.frames and I use only one or two per session, what's the best way? If all are stored in the actual .Rdata, the system gets slow. On the other hand, I wouldn't like to make a separate package for the data. Should I save it with save() and then remove it with rm() ? Could I reload it then? Thanks for suggestions
2003 Jul 22
3
R and C++ compared with only C++
My computer is a pentium 4 running at 2.4 GHz. My R is 1.7.1 I have written a program in R that calls C++. The program spends most of the time in C++ ( > 90% ). R basically deals with output and input. How slower can this be compared with the program I would get from rewriting everything in C++? Thank you.