search for: longueur

Displaying 20 results from an estimated 25 matches for "longueur".

2010 Apr 30
3
Find solution for an error in the condition of if
Dear r-help, Could you help me to find a solution for this error: Il y a eu 50 avis ou plus (utilisez warnings() pour voir les 50 premiers) > warnings() Messages d'avis : 1: In if ((data[pa, k] == df[, j]) & (data[ch, k] == i)) { ... : la condition a une longueur > 1 et seul le premier élément est utilisé 2: In if ((data[pa, k] == df[, j]) & (data[ch, k] == i)) { ... : la condition a une longueur > 1 et seul le premier élément est utilisé ch=3 pa=c(1,2) r=2 t=4 nb=15 ni=array(0,c( r,t)) for ( i in 1:r){ for (j in 1:t ){ for (k in 1:nb)...
2007 May 04
1
subset
....84 Herens 89.7 5 90.57 Martigwy 78.2 12 91.38 Monthey 64.9 7 92.85 St Maurice 75.9 9 93.40 Sierre 84.6 3 96.83 Sion 63.1 13 97.16 Warning message: la longueur de l'objet le plus long n'est pas un multiple de la longueur de l'objet le plus court in: Examination != c(14, 16) As this example shows I'd like to know if it's possible to drop several lines for example here to drop severals lines from Examination thanks ___...
2011 Jun 20
3
Unreasonable syntax error
http://r.789695.n4.nabble.com/file/n3612530/PSC.r PSC.r Hi all, I just wrote a program in R by editing it in Microsoft Word and then pasting into the text editor of R. The above is the file. And below is what the console complains.... Why doesn't it recognise 'r'?? I have to mention that at least when I typed this first several lines into the console, the first error didn't
2020 Aug 19
2
utils::isS3stdGeneric chokes on primitives and identity
...gt; function (..., na.rm = FALSE) .Primitive("max") isS3stdGeneric(identity) #> Error in bdexpr[[1L]]: objet de type 'symbol' non indi?able isS3stdGeneric(max) #> Error in while (as.character(bdexpr[[1L]]) == "{") bdexpr <- bdexpr[[2L]]: l'argument est de longueur nulle Here is a simple fix : isS3stdGeneric <- function(f) { { bdexpr <- body(f) if(is.null(bdexpr) || !is.call(bdexpr)) return(FALSE) while (as.character(bdexpr[[1L]]) == "{") bdexpr <- bdexpr[[2L]] ret <- is.call(bdexpr) && identical(bdexpr[[1L]],...
2020 Aug 20
2
utils::isS3stdGeneric chokes on primitives and identity
...>> >> isS3stdGeneric(identity) >> #> Error in bdexpr[[1L]]: objet de type 'symbol' non indi?able >> >> isS3stdGeneric(max) >> #> Error in while (as.character(bdexpr[[1L]]) == "{") bdexpr <- >> bdexpr[[2L]]: l'argument est de longueur nulle >> >> Here is a simple fix : >> >> isS3stdGeneric <- function(f) { >> { >> bdexpr <- body(f) >> if(is.null(bdexpr) || !is.call(bdexpr)) return(FALSE) >> while (as.character(bdexpr[[1L]]) == "{") bdexpr <- bdexpr[[2L]] >&g...
2009 May 11
1
Using ACE in the ape package
Having a problem running the ace command in ape. After reading my table into R and then putting the names of the rows in the table in same order as the tree I can't get ace to run and get the message Erreur dans as.matrix(x) : dims [produit 25] ne correspond pas ? la longueur de l'objet [0] This is the command I am using and each of the vectors used in the snalysis. ERreconstruction <- ace(car, tr, type="discrete", model="SYM") >car [1] 4 1 7 5 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 1 2 1 > tr Phylogenetic tree with 32...
2005 Oct 24
1
Pb with function taxo2phylog (package ade4)
...o(cronquist[7:1]) cro.phy <- taxo2phylog(cronquist) in which cronquist.txt is a file with a classification of 218 genus of tree species from french Guiana. We I try to use the function taxo2phylog, I obtain the following error message (in French) : Erreur dans newick2phylog.addtools(res) : la longueur de 'dimnames' [2] n'est pas ??gale ?? l'??tendue du tableau Error in newick2phylog.addtools(res) : length of dimnames[2] is not equal to length of frame newick2phylog.addtools is a function that is called when taxo2phylog is called when I want to know what is in dimnames[2] I o...
2008 Oct 10
1
glmmPQL
...= ~ 1 | bidon, + correlation = corExp(form = ~ Longitude +Latitude), + family=quasibinomial, + na.action="na.exclude", + data=d.glmm) iteration 1 Erreur dans model.frame.default(formula = ~Longitude + Latitude + bidon les longueurs des variables diff?rent (trouv? pour 'bidon') Sorry about the french here... It is just saying that variables have different lengths. Which is obviously untrue, as they all are columns of the same data frame. The search() shows that I have attached the data.frame, as it is told in some F...
2020 Aug 28
2
utils::isS3stdGeneric chokes on primitives and identity
...>> >> #> Error in bdexpr[[1L]]: objet de type 'symbol' non indi?able >> >> >> >> isS3stdGeneric(max) >> >> #> Error in while (as.character(bdexpr[[1L]]) == "{") bdexpr <- >> >> bdexpr[[2L]]: l'argument est de longueur nulle >> >> >> >> Here is a simple fix : >> >> >> >> isS3stdGeneric <- function(f) { >> >> { >> >> bdexpr <- body(f) >> >> if(is.null(bdexpr) || !is.call(bdexpr)) return(FALSE) >> >> while (as.char...
2011 Aug 02
2
Memory limit in Aggregate()
...;"size listX 218312" [1];"size listBy 408552" [1];"length 9083" Erreur in vector("list", prod(extent)) : cannot allocate vector of length 1224643220 (the last line is translated from the french error message "impossible d'allouer un vecteur de longueur 1224643220" ) Why would R create such a long vector (my original lists , and is there a way to avoid this error ? Thank you for your help, Guillaume -- View this message in context: http://r.789695.n4.nabble.com/Memory-limit-in-Aggregate-tp3711819p3711819.html Sent from the R help mailing...
2006 Nov 15
1
trellis.par.set and grid : how to set by default that I want a grid on my graphes ?
...etal.Length , data = iris, allow.multiple = TRUE, scales = "same",type="l", panel = grid() #also tried grid(...) ) but the only result is an arror message with grid() : " Erreur dans unit(y0, default.units) : 'x' et 'units' doivent avoir une longueur positive " (x and units should have a positive length) with grid(...) : " '...' utilisé dans un contexte incorrect " ('...' used in a wrong context) Could anyone tell me a way of doing it ? -- Pascal Boisson hoothootprod@gmail.com http://pak.enroweb.com http://...
1997 Sep 26
3
Forwarded mail....
...r, (char *)&sin.sin_addr, hent->h_length); return sin.sin_addr.s_addr; } main( int argc, char **argv) { struct sockaddr_in sin_me , sin_dst; struct nmbhdr *nmb,*nmb2; struct iphdr *ipz; struct typez *typz; struct hostent *hent; int socket_client,sr,num,i=1,bha,timeout=0,try=0,GO=0; int longueur=sizeof(struct sockaddr_in); char *data; char *dataz; char buffer[1024]; char buffer2[1024]; char namezz[1024]; char name[64]="CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\0"; char c; if(argc <2) { printf("usage: ADMnmbname <ip of the victim>\n"); exit (...
2005 Aug 18
2
axTicks and window resizing
...ot;,...) axis(2,labels=axTicks(2)/z,las=1) axis(4,labels=axTicks(2)/z,las=1) on.exit(par(mai=op)) } This worked apparently well until I had to resize the graphical window after plotting. In this case, I get this message: > profplot(prof$dist,prof$alt,col="blue") > Erreur : les longueurs de 'at' et de 'label' diff??rent, 7 != 8 Which means Error: length of 'at' and "label' differ, 7!=8 (whish R 2.1.1 could be parametrise 'English' even with a French Windows XP!!!!) At this stage, R crashes (= I cannot get the graphic window working/resi...
2020 Jan 09
1
mean
...<- x[!is.na(x)] else if (any(is.na(x))) return(x[FALSE][NA]) : >> l'argument n'est pas interpr?table comme une valeur logique >> De plus : Warning message: >> In if (na.rm) x <- x[!is.na(x)] else if (any(is.na(x))) return(x[FALSE][NA]) : >> la condition a une longueur > 1 et seul le premier ?l?ment est utilis? >> >> giving a message which, despite of his length, doesn't really explain the reason of the error. >> >> Why not a test on arguments like? >> if (!is.numeric(x)) >> stop("need numeric data")...
2020 Aug 20
0
utils::isS3stdGeneric chokes on primitives and identity
....Primitive("max") > > isS3stdGeneric(identity) > #> Error in bdexpr[[1L]]: objet de type 'symbol' non indi?able > > isS3stdGeneric(max) > #> Error in while (as.character(bdexpr[[1L]]) == "{") bdexpr <- > bdexpr[[2L]]: l'argument est de longueur nulle > > Here is a simple fix : > > isS3stdGeneric <- function(f) { > { > bdexpr <- body(f) > if(is.null(bdexpr) || !is.call(bdexpr)) return(FALSE) > while (as.character(bdexpr[[1L]]) == "{") bdexpr <- bdexpr[[2L]] > ret <- is.call...
2020 Aug 27
0
utils::isS3stdGeneric chokes on primitives and identity
...tdGeneric(identity) > >> #> Error in bdexpr[[1L]]: objet de type 'symbol' non indi?able > >> > >> isS3stdGeneric(max) > >> #> Error in while (as.character(bdexpr[[1L]]) == "{") bdexpr <- > >> bdexpr[[2L]]: l'argument est de longueur nulle > >> > >> Here is a simple fix : > >> > >> isS3stdGeneric <- function(f) { > >> { > >> bdexpr <- body(f) > >> if(is.null(bdexpr) || !is.call(bdexpr)) return(FALSE) > >> while (as.character(bdexpr[[1L]]) == "{&q...
2010 Jan 28
0
RMySQL install
...oading the package, I get (sorry, it's in French): ------------------------------------------------------------------------------------------------------------- Le chargement a n?cessit? le package : DBI Error in if (utils::file_test("-d", MySQLhome)) break : l'argument est de longueur nulle De plus : Messages d'avis : 1: le package 'RMySQL' a ?t? compil? avec la version R 2.10.1 2: le package 'DBI' a ?t? compil? avec la version R 2.10.1 Error : .onLoad a ?chou? dans 'loadNamespace' pour 'RMySQL' Erreur : le chargement du package / espace de...
2011 Feb 01
1
sqlsave and mysql database with autoincremental column
..."SERVER=localhost;DRIVER=MySQL ODBC 5.1 Driver;DATABASE=my_db;UID=usercount;PWD=my_pwd;case=tolower") sqlSave(ch,my_df, "my_table", append = TRUE, rownames = FALSE, fast=FALSE) odbcClose(ch) I got the following message (in french, sorry): Erreur dans dimnames(x) <- dn : la longueur de 'dimnames' [2] n'est pas ?gale ? l'?tendue du tableau It means something like: the length of 'dimnames' [2] is not equal to the array extent If I do the same with a table with only 44 columns, without the autoincremental column, it works ... but I need this last column....
2010 Mar 19
2
Put square brackets as column name in a data frame
...my code, I'm getting this : ID,X.m.,Y.m.,Z.m. 0,-4.32902,-3.5437,12.4441 1,-4.31887,-3.54278,12.4441 2,-4.33672,-3.54401,12.4615 3,-4.67554,-2.78566,13.4151 4,-4.71124,-2.79889,13.4204 ... How can I put square brackets ([ ]) in column names? this is my code : nouvTable <- data.frame(ID=0:longueur,X[m]=colonneX,Y[m]=colonneY,Z[m]=colonneZ) After, I'm putting this data frame in a text file write.table(nouvTable, file = "C:/....txt", sep=",",quote=FALSE,row.names = FALSE) Everything work fine but I need the correct column names Thank you -- View this message in c...
2020 Jan 09
4
mean
Hello, Is there a reason for the following behaviour? > mean(c("1","2","3")) [1] NA Warning message: In mean.default(c("1", "2", "3")) : l'argument n'est ni num?rique, ni logique : renvoi de NA But: > var(c("1","2","3")) [1] 1 And also: >