similar to: read.table(..)..Help?

Displaying 20 results from an estimated 1000 matches similar to: "read.table(..)..Help?"

2003 Nov 20
2
reading data rows
I have problems reading a file with more than one row to carry out mathematical calculations I have a a file of the form mu1 mu2 alpha beta Wsigma sigmaA b r 25 15 .05 .05 22 3 .3 .5 30 20 .1 .2 22 .3 .3 .5 I intend to read one row , carry out the calculations and then the next row with which I intend to do the same calculations. I do the following.
2003 Oct 02
8
r editors
Hi , I am programming on a windows system and have problems using notepad which is my main editor.Each time I try to open the editor from the R IDE, R crashes. So I always have to copy my codes from notepad and paste in R to run them. CAn someone tell me if I am doing anything wrong or is there a better editor(freeware) which I could get. thanks cilver ===== ===================== Sylvie B.
2003 Dec 06
2
Precision
Hi, I would like to increase the Precision of R by increasing the Number of decimal places in calcultaions. I get about 7 decimal places and would like to have over 15. is the a means to inflence this? Thanks ===== ===================== Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276
2004 Jan 22
1
error message
Hi, Can someone please tell me what such an error message could mean. i.e where a problem must have arised. Error in uniroot(function(n) eval(p.body) - power, c(2, 1e+07)) : f() values at end points not of opposite sign Thank you cilver ===== ===================== Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276
2003 Sep 30
1
variables
Hi, can someone please help me. I will give a simple example of my problem. p <- function() { i <- 1 sr <- function(){ i<-i+3 i<- sqrt(i) } cat(i) } This is just an example. My main problem is defining i like a global variable which I can use in the sub- and main functions without any complicated switches. Thanks in advance. cilver ===== ===================== Sylvie B.
2003 Nov 26
4
strptime Usage
Hi, I have a column in a dataframe in the form of: > as.vector(SLDATX[1:20]) [1] "1/6/1986" "1/17/1986" "2/2/1986" "2/4/1986" "2/4/1986" [6] "2/21/1986" "3/6/1986" "3/25/1986" "4/6/1986" "4/10/1986" [11] "4/23/1986" "4/30/1986" "5/8/1986"
2003 Nov 13
3
Program Saving
Hi, I have a very simple question. If a want to save a whole program (say more than 5 command lines), how can I proceed without each time using the command history (that allow me to recall previously saved command, but which is to long if you want to recall more than 5 command lines), or without saving to a text file and use copy/paste when I open a new R session (but in fact this doesn't
2003 Nov 17
3
S Programming
Dear all, I am thinking of writing my own functions in s-plus (or in R). I just know how to work with S-plus / R built-in functions. Therefore, I'm a beginner in S programming. I am looking for some on-line documentation that is well written about "Programming in S language" where control stuctures / loops / vectorization and necessery sequences of S programming are
2003 Apr 08
5
Help on smooth.spline?
Hey, R-listers I was recommended to try using smooth.spline function for estimating 2-Dimensinal curve given a data set. So will you please tell me where to get this R function? Or which package provides this function? Thanks for your point. Fred
2003 May 17
2
Regression tree
Hi everybody. I'm a new R user and i've been searching a tool for construction of regression tree... I found function "tree()" written by a certain Mr. Ripley, and seems to be just what i'm looking for, but when i try to use it in R replies me:"Object not found". So I was wandering if I should include one special library or something like that? Thanks a lot, ana
2003 Apr 08
2
tree plot
Hello helpers I have this problem. When I plot a regression tree, some words are cutted in the figure. There is an attached file tree.ps to see what I'm saying. In the right figure some labels are cutted. How can I solve this problem? -- http://adsl.sapo.pt -------------- next part -------------- A non-text attachment was scrubbed... Name: tree.ps Type: application/postscript Size: 4743
2003 Mar 26
2
Plotting K-M Curve when have several strata
Hi, If I have: foo <- survfit(y ~ x) where y is a survival object and x is a n-level factor. The documentation says when I plot(foo), the confidence intervals will not be plotted (which I guess is understandable as otherwise the plot will get really messy). I tried to plot with confidence intervals by using: plot(foo, conf.int = TRUE) and indeed the resulting plot is messy. However
2003 Dec 15
3
Julian Dates
Hi, I'm a bit confused how julian() works. If I understand right, it returns the number of days since the origin. I have a vector: > SLDATX[1:10] [1] "1986-01-06" "1986-01-17" "1986-02-02" "1986-02-04" [5] "1986-02-04" "1986-02-21" "1986-03-06" "1986-03-25" [9] "1986-04-06"
2003 Jun 08
6
Basic question on applying a function to each row of a dataframe
Hi, I have a function foo(x,y) and a dataframe, DF, comprised of two vectors, x & w, as follows : x w 1 1 1 2 2 1 3 3 1 4 4 1 etc I would like to apply the function foo to each 'pair' within DF e.g foo(1,1), foo(2,1), foo(3,1) etc I have tried >apply(DF,foo) >apply(DF[,],foo) >apply(DF[DF$x,DF$w],foo) However, none of the above worked. Can anyone help ?
2003 Mar 26
2
ifelse()
Hi, I'm not sure if this can be done but.. I know that with ifelse() I can do something like: ifelse(x <= 3, 1, 2) to go through each element in my vector x, and if x_i <= 3 substitute the number with 1 else with 2. Essentially I'll get a vector with 2 levels. Can I tweak it so I can get 3-levels? For example: if(x <= 3) then 1 elseif(3 < x <= 4) then 2
2003 May 25
1
Example Data Set(s) for nnet, rpart
Hi, I'm doing a presentation on Neural Networks and Tree-Based Models in two weeks, at the moment I'm looking for a data set to use in the presentation. What I would like to use is a good old data, like the Iris data, that is already known by every statisticians. MASS4 uses the cpus data in Chapter 8.10 and the Cushing's syndrome in Chapter 12.4. These two data sets plus the
2003 Oct 22
1
questions about axis
Dear helper. I am a beginer. I have difficulties to handle axis. I want to draw axis label such that axis has range of [-0.4,0.4] with intervel 0.2 for x and y axis. Some part of range do not have data points. Thus, plot does not show whole range. How can I enforce plot to depict the whole range regardless of existence of data points ? Another problem is that when I depict axis labels, some
2003 Mar 21
2
rsync
Hola! I am now downloading r-devel to compile it on windows XP. The CRAN source code page says "you will prefere to use rsync". I am googling around, and cannot find anything about rsync on windows. Anybody has any experience with rsync on windows? Kjetil
2003 Apr 10
1
re: question on R
Hi, While I was searching the web to see who I can look for to help me with the R program, I came across your email in one of the reply screen. Would appreciate if you could let me know are you the consultant of the R program and in what cases will you help people with the R question? Looking forward to your early reply. Thanks. Rgds, Angie ---------------------------------
2003 Apr 29
2
Remove leading brackets in print?
Hi, I can't seem to get an answer for this by searching through the R-help archives: How does one remove leading brackets in print? For example, >print( 3 ) >[1] 3 Would it be possible to get rid of the "[1]"? Of course the effect is the same without "print", as in, >3 >[1] 3 but I would only be interested in omitting brackets in printing, if that's