search for: rideau

Displaying 20 results from an estimated 31 matches for "rideau".

2004 Sep 16
5
Multi-dimensional scaling
R-help, Is there any package/function in R which can perform multi-dimensional scaling? Thank you in advance
2004 Oct 15
6
length with missing values
R-help I have a martix with missing values( in which I want the sample size by column) When I : apply(matrix,2,length) I get the length of the vector regardless of missing values. I can't pass an argument to length in apply. Alternatively I could ifelse ( is.na ( matrix [, "columns in matrix " ] ) , 0 , 1) Is there any easier way? Thank you
2004 Aug 27
4
for (i in ...) { df[[i]]<- .....}
R-help, In the following loop : for(i in 1:8) { cc[[i]]<-tapply(test[,i+6],list(puntar=test$puntar),sum)/tapply(test[,5],list(puntar=test$puntar),sum) cbind.data.frame(cc[[1]],cc[[2]],cc[[3]],cc[[4]], cc[[5]],c[[6]],cc[[7]],cc[[8]]) } Is there anyway I can 'cbind.data.frame' the objects cc[[ i ]] without actually writing every single element?? In this case there are 8 but what if
2004 Oct 01
3
Can grid lines color in a plot be specified?
R-help Is there any way to specify the color of grid lines in a simple plot? par(color.tick.marks=c("grey")) plot(rnorm(10),tck=1) Thank you
2004 Aug 16
3
adding sem to a plot
R-help, I have a barplot and I wish to add standard erros (or deviations) bars to it. How? Thank you Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn Faroe Islands Phone: +298 353900 Phone(direct): +298 353912 Mobile: +298 580800 Fax: +298 353901 E-mail: luisr at frs.fo Web: www.frs.fo
2004 Jul 23
1
R: retrieve rows from frame assuming criterion [corrected]
sorry for my previus (WRONG) answer, as someone already pointed out a solution could be subset(data, PUNTAR==c("IX49","IX48")) > -----Messaggio originale----- > Da: Guazzetti Stefano > Inviato: venerd?? 23 luglio 2004 15.55 > A: 'Luis Rideau Cruz'; r-help at stat.math.ethz.ch > Oggetto: R: [R] retrieve rows from frame assuming criterion > > > Assuming your data.frame is called "data" > > data[data$PUNTAR==c("IX49","IX48"),] > > is probably what you want > > Stefano &g...
2004 Jul 26
5
aggregate function
Hi all, I have the folowing frame(there are more columns than shown), 1 2 3 4 5 Year Total Tus Whi Norw 1994 1.00 1830 0 355 1995 1.00 0 0 0 1995 1.00 0 0 0 1995 1.00 4910 4280 695 1997 1.00 0 0
2005 Jan 12
1
RODBC package -- sqlQuery(channel,.....,nullstring=0) stillgives NA's
...1 12 6 11 39 4 13 5 5 34 8 58 13 Best, Luis >>> Prof Brian Ripley <ripley at stats.ox.ac.uk> 12/01/2005 09:14:22 >>> On Tue, 11 Jan 2005, Luis Rideau Cruz wrote: > R-help, > > I'm using the RODBC package to retrieve data froma ODBC database which > contain NA's. > > By using the argument nullstring = "0" in sqlQuery() I expect to > coerce them to numeric but still get NA's in my select. You need to r...
2004 Jul 20
9
Sort a data frame
Hi all I have the next data frame year STOD SLAGNR TAL TALT TALVEKT 1 2002 2120006 57 1 NA 1 2 1997 97030032 57 NA NA NA 3 1997 97030071 27 1 NA NA 4 1997 97030005 57 1 NA NA 5 1997 97020127 60 NA 1 NA 6 2001 1160025 27 1 NA 1 7 1998 98020069 60 1 NA NA 8
2004 Apr 22
3
fill up a matrix
Hi all, I want to fill in this matrix vectors (by column) without overwriting the first elements in column 1995. Is there any other way than concatenate the first element with the vector and then assign this new vector to the column in matrix? matrix[,"3"]<-c(1591,"vector") matrix[,"4"]<-c(405,"vector") ... ...
2004 Jul 23
0
R: R: retrieve rows from frame assuming criterion [corrected]
...ught in its pathway from the brain to the keyboard". :-) Sorry once again and thank for your patience. Stefano > -----Messaggio originale----- > Da: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] > Inviato: venerd?? 23 luglio 2004 16.30 > A: Guazzetti Stefano > Cc: Luis Rideau Cruz; r-help at stat.math.ethz.ch > Oggetto: Re: R: [R] retrieve rows from frame assuming criterion > [corrected] > > > On Fri, 23 Jul 2004, Guazzetti Stefano wrote: > > > sorry for my previus (WRONG) > > answer, as someone already pointed out > > a solution c...
2004 Aug 06
2
list of frames without first element
R-help, I have a list of several data frames. I want to compute the "rowSums" of the columns of these data frames but first one. Something like this lapply(my.list,rowSums) Thank you Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn Faroe Islands Phone: +298 353900 Phone(direct): +298 353912 Mobile: +298
2004 Oct 29
2
extraction of p-value
R-help, I wish to get the p-values of anova model as numeric and not as part of the standard output (print,summary,,,) I have tried several commands but to not vail Thank you
2004 Jun 17
3
How to order a vector
Hi all I have a vector like this 2003 2002 2001 2000 1999 1998 1997 1996 106 105 106 106 105 106 101 107 How can I get it sorted right(1996....2003)? Thank you Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn Faroe Islands Phone: +298 353900 Phone(direct): +298 353912 Mobile: +298 580800 Fax: +298 353901
2004 Jul 23
0
retrieve rows from frame assuming criterion [corrected]
...t; answer, as someone already pointed out > a solution could be > > subset(data, PUNTAR==c("IX49","IX48")) > > > > > -----Messaggio originale----- > > Da: Guazzetti Stefano > > Inviato: venerd?? 23 luglio 2004 15.55 > > A: 'Luis Rideau Cruz'; r-help at stat.math.ethz.ch > > Oggetto: R: [R] retrieve rows from frame assuming criterion > > > > > > Assuming your data.frame is called "data" > > > > data[data$PUNTAR==c("IX49","IX48"),] > > > > is prob...
2005 Jan 12
0
RODBC package -- sqlQuery(channel,.....,nullstring=0)stillgives NA's
..., which says nullstring: character string to be used when reading 'SQL_NULL_DATA' character items from the database. ^^^^^^^^^^^^^^^ so this does not apply to numeric items. You can of course easily change numeric NAs to 0s, if you want to. On Wed, 12 Jan 2005, Luis Rideau Cruz wrote: > There is something strange in R behaviour (perhaps). Your negative remarks are not appreciated. > I have run the same select in Oracle SQL*Plus (version 10.1.0.2.0) and > the output comes out with NULLs (which is what it ougth to be). > > But in R I still get the sa...
2004 Aug 17
2
levels of factor
R-help, I have a data frame wich I subset like : a <- subset(df,df$"column2" %in% c("factor1","factor2") & df$"column2"==1) But when I type levels(a$"column2") I still get the same levels as in df (my original data frame) Why is that? Is it right? Luis Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn
2004 Jul 23
2
retrieve rows from frame assuming criterion
Hi all, I have a data frame in which one column(PUNTAR) is of character type. What I want is to retrieve is the frame but only with those rows matching elements of PUNTAR with a list characters (e.g c("IX49","IX48") ) Year TUR STODNR PUNTAR 1994 9412 94020061 IX49 1994 9412 94020062 IX48 1994 9412 94020063 X32 1994 9412 94020065 X23 1994 9412
2004 Aug 13
2
lapply problem
R-help, I wish to replace NULL elements(or missing) in the following list : > z2 $cod mean sd 62.56190 12.65452 $haddock mean sd 36.61490 11.50365 $ling mean sd 86.17949 20.43587 $saithe mean sd 50.275847 5.453606 $whiting NULL $"norway pout" mean sd 13.739623 1.393104 $"great silver smelt" mean
2004 Apr 20
1
R1.9.0
I have just installed R 1.9.0 on my computer(Windows XP) and uninstalled 1.8.1 When Itry to execute .RData I'm asked to specify the program to open it.But whe I do it I get a message ".RData is not a valid Win32 program" Can anyone help please? Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn Faroe Islands Phone: +298 353900