[R] Find a word

2006-04-27 Thread Alexandra R. M. de Almeida
Dear R users, I have the following problem: I have an array with pasted words and I woul like to know the position of the vector that have another especific word. Let make an example: This tis the array: words.array<-c("RedBall","PinkBall","YellowTable","BlueBall") And I would like to know

[R] Reanding a windows file

2006-02-20 Thread Alexandra R. M. de Almeida
Dear R users Some one knows how to read a windows file with the adress like "D:\CSV\Work\test.csv" without change the "\" by "/" by myself?! There is some function or parameter that read like the adress windows form. I tried to search somethig to substitute the "\" by "/", but I don't find...

[R] Read a csv file

2006-02-16 Thread Alexandra R. M. de Almeida
Dear R users, I have 14 csv's files that I want read in R, but one of them I can't read (the others 13 don't bring me any problem), and I don't know the problem. I will report the subject of the csv that I can't read, one csv that don't have any problem to read and the script that I use to tr

[R] Re-writing the problem of Using special characters

2006-01-26 Thread Alexandra R. M. de Almeida
Dear R users I'm having problems in putting special characters (like á, ã, ç ) in my plots, as much in titles, as in axis names, as in legend...when I save them as a pdf OR JPEG document. They don't appear IN BOTH... I don't know if it is because I'm using a linux platform (MANDRIVA 2006)...

[R] Using special characters

2006-01-26 Thread Alexandra R. M. de Almeida
Dear R users I'm having problems in putting special characters (like á, ã, ç ) in my plots, as much in titles, as in axis names, as in legend...when I save them as a pdf document. They don't appear... I don't know if it is because I'm using a linux platform... The script is the following:

[R] Regression with no-intercept

2006-01-17 Thread Alexandra R. M. de Almeida
Dear R users, There is a method called "style analysis" where you make a regression being Y=fund yield and X=benchmarks yield, where we have the restrictions to calculatethe linear regression: 1. The regression must don have the intercept term. 2. The coefficient sum must be one. 3. All

[R] Obtaining the adjusted r-square given the regression coefficients

2006-01-10 Thread Alexandra R. M. de Almeida
Dear list I want to obtain the adjusted r-square given a set of coefficients (without the intercept), and I don't know if there is a function that does it. Exist I know that if you make a linear regression, you enter the dataset and have in "summary" the adjusted r-square. But

[R] Obtaining the adjusted r-square given the regression coefficients

2006-01-10 Thread Alexandra R. M. de Almeida
Hi people, I want to obtain the adjusted r-square given a set of coefficients (without the intercept), and I don't know if there is a function that does it. Exist I know that if you make a linear regression, you enter the dataset and have in "summary" the adjusted r-square. But