search for: laetitia

Displaying 20 results from an estimated 20 matches for "laetitia".

2010 Jan 09
3
string functions
Hi! Does anybody know a string function that would calculate how many characters two strings share? I.e. ("Hello World","Hello Peter") would be 7. Thanks. Laetitia
2006 Jan 24
9
Number of replications of a term
...or of more than 40 000 ID and the function I wrote (it orders my data and checks on ID:Name of the data if the next term is the same as the previous one (see below) ) is really slow (30minutes for 44290 terms). But I don't have time by now to write a C function. Thanks a lot for your help, Laetitia. Here is the function I have written maybe I have done something not optimized : repVector <- function(obj){ # order IDName ord <- gif.indexByIDName(obj) ordobj <- obj[ord,] nspots <- nrow(obj) # vector of spot replicates number spotrep <- r...
2010 Jan 11
1
apply a function down each column
...that is a loop: a <- as.character(dat[(2x-1),1]) b <- as.character(dat[(2x),1]) for (i in 1:length(dat[,1]) my_function(a, b)) Can somebody help me to apply a function with a loop in the way I want to a column? Is there a specification of "tapply" for that? Thank you very much, Laetitia ---------------------------------------------------------------------------- Laetitia G. Schmid Master Student of Evolutionary Genetics in Marine Mammals Department of Genetics, Microbiology and Toxicology Stockholm University Svante Arrheniusv?g 16 10691 Stockholm, Sweden private: Laetitia G....
2010 Apr 25
3
numerical or not?
...his output and want to calculate things, R complains that x is not numeric. I read it in with the following command: dat1<-read.table("temporary_output.txt",header=TRUE). It seems that R is saving my temporary output as a list. What is here wrong? And how can I do it better? Thanks. Laetitia
2010 Aug 20
3
if-else function
...ParasiteC 2 1 1 3 ParasiteD 2 1 1 4 ParasiteE 4 1 1 1 The function should give a 1 for plots 1 and 4 and a 0 for plots 2 and 3. Your help is very much appreciated, Laetitia
2005 Jun 04
2
glm with a distribution free family
...ee family, link = log and variance = constant*mu. I guess I have to use the quasi family but the choices of variance are restricted to constant or mu or mu^2..., I don't know the way to choose the variance that I need, i.e. constant*mu. If you have any ideas or advice, please tell me. Thanks, Laetitia Mestdagh Laetitia Mestdagh élève en 3ème année a l'ISUP( Université de Paris VI) 13 rue Ernest Chamblain 91250 St Germain les Corbeil Tel : 01 69 89 28 15 Portable : 06 18 44 53 26 --------------------------------- ils, photos et vidéos ! [[alternative HTML version deleted]]
2003 Apr 28
2
Algorithm did not converge
...nt data that I have: model<-glm(COUNT~SP*LOC*COL*TIME*TREAT,poisson) but R keeps on crashing and coming up with (occasionally before crashing) an error that states: Algorithm did not converge in: (if(is.empty.model(mt)) glm.fit.null else glm.fit)(x = X, y = Y, What am I doing wrong? Thanks Laetitia
2006 Feb 15
2
Setting intial path under windows to MyComputer in Interactive file browser
...can I specify in tcltk file browser the initial directory to "MyComputer" in Windows where Drives and Partition are accessible? And just a little question if anyone knows, is there a way to use the function choose.files under windows to select a directory? Thanks a lot for your help. Laetitia.
2004 Feb 03
2
Prompt / Console problem
...mpletion when writing a file path, back and forth in the history, bindkeys... Moreover when I quit R by saving, no .Rhistory file is created while the .Rdata is. I don't get how this work, I thought it was based on the user unix shell but it does not seem. Any ideas?? Thanks for you help, Laetitia.
2010 Aug 28
2
extracting columns
Hi, Can anybody show me how to extract all columns in my dataset that are polymorphic? Or phrased in another way I would like to delete all columns that have no more than one letter in it (that are monomorphic). Thank you. Laetitia -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: seqCol.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100828/381c0468/attachment.txt> -------------- next part --------------
2008 Jul 29
1
Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?
...NA), na.rm = TRUE) [1] NA Example in 2.7.1: > sd(c(NA, NA, NA, NA), na.rm = TRUE) Error in var(x, na.rm = na.rm) : paires d'éléments incomplètes We are actually wondering if it is a bug to report, or if we have to manage it in our own R scripts. Thanks a lot, best regards, Laetitia ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. *************************************************...
2005 May 31
1
GLM question
...2 3 4 5 6 1.25 1.75 3.00 3.75 5.25 6.00 So my question are : - Why are the fitted wrong (except for 3 and 6)? - Is the quasipoisson the right family for my model? I am a little bit lost and not an expert of R, so I thank in advance for any kind of advice Laetitia --------------------------------- ils, photos et vidéos ! [[alternative HTML version deleted]]
2010 May 19
1
sample and rearrange
...set so that all first letters of each column will be combined in one column, all the second letters in a second column, all the third ones in a third column and so on, resulting in 7 columns, i.e. for the first individual (GM920222) GGGG AAAA TTTT TTAA GGGG CCAA CCCC ? Thank you very much, Laetitia SampleID A1 A2 A3 A4 GM920222 GATTGCC GATTGCC GATAGAC GATAGAC GM930040 GTCATCA GAGTGCA ACTATAA GATTGCC GM930040 GTCATCA GAGTGCA ACTATAA GATTGCC GM960023 GATTGCC GTCATCA GATTGCC GATTGCC GM920224 ACTAGAA GTCATCA GTCATCA ACTAGAA GM920224 ACTAGAA GTCATCA GTCATCA ACTAGAA GM920034 GATTGCC GTCATCA GATTGC...
2010 Mar 08
1
compare tables
...??? output[i,y]<-(lettermatch(creator_table, output_tables)) } } Could you please help me how I have to call up the output tables in the way I need them (described above) for the function "lettermatch"? Maybe I need to change the format of the output file? Thank you. Laetitia [[alternative HTML version deleted]]
2003 Aug 29
3
R and pointer
Hi everyone, I want to write a function that modify directly variables passed as parameters (the equivalent in C language of *ptr/&ptr) so that I don't have to return a list and to reaffect all my variables. Is it possible to do so in R? Thanks a lot. Laetitia Marisa.
2004 Jul 27
1
Display on Windows console from script
...pr files", filters = matrix(c("genepix file","*.gpr"), nc=2, byrow=T)) The popup browse window is first displayed and once I've selected my files the cat "IMPORT..." is displayed. What can I do to make my displays appear at the right time? Thanks a lot. Laetitia Marisa.
2002 Nov 21
0
Calling R from Java
...the connection and from you java code it is as simple as this example: REXP mean = c.eval("mean"+i+"<-apply("+data+"[,data.cl=="+(i-1)+"],1,mean.na)"); This is what I'am using in my application and I am quite satisfied with it. Hope this helps, Laetitia. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1692 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20021121/af3efc2a/attachment.bin
2012 Jun 07
1
Abrupt closure of R when using .C function
Hi Everyone, This is my first message on this discussion list. I create a R function which includes a .C function. I didn't get any error neither from "C side", nor from "R side". I tried to put proper type in R. But the problem is that I get an abrupt closure of R, with the following message: " R for Windows GUI front-end encountered a problem and needs to
2006 Jan 25
0
lazy evaluation (was RE: Number of replications of a term)
...ay Brownrigg > > > >> From: Gabor Grothendieck <ggrothendieck at gmail.com> > >> > >> Nice. I timed it and its much faster than mine too. > >> > >> On 1/24/06, Barry Rowlingson <B.Rowlingson at lancaster.ac.uk> wrote: > >>> Laetitia Marisa wrote: > >>>> Hello, > >>>> > >>>> Is there a simple and fast function that returns a > vector of the number > >>>> of replications for each object of a vector ? > >>>> For example : > >>>> I have a...
2010 May 16
2
sample
Hi, I am sampling two random columns from females and two random columns from males to produce tetraploid offspring. For every female I am sampling a random male. In the end I want to write out a a matrix with all the offspring, but that does not work. I get always only the offspring from the last females. There must be a mistake in my script: moms<-read.delim("females.txt",