similar to: Logical vectors

Displaying 20 results from an estimated 700 matches similar to: "Logical vectors"

2003 Aug 06
2
(no subject)
Hi everybody, Hope your are not all on holyday because I've got a problem that is going to drive me crazy... I would like to remove some rows from a dataframe. The rows correspond to some specific indexes which I can get by looking at the name in the first column of my dataset. But I manage to get only the opposite of what I really want (function #1) #Function#1:
2011 Mar 10
2
within group sequential subtraction
Hi Everyone, I would like to do sequential subtractions within a group so that I know the time between separate observations for a group of individuals. My data: data <- structure(list(group = c("IND1", "IND1", "IND2", "IND2", "IND2", "IND3", "IND4", "IND5", "IND6", "IND6"), date_obs =
2002 Sep 24
2
Iterative data.frame
Hi, I would like to create data.frame and increment their name to finally merge them. Does anybody has a solution ? Something like that ? n<-6 for (i in 1:n) { m[i]<-data.frame(name,value) m<-merge(m[i]:m[n]) } Nolwenn ******************************************** Nolwenn Le Meur INSERM U533 Facult? de m?decine 1, rue Gaston Veil 44035 Nantes Cedex 1 France Tel:
2009 Sep 11
2
Accumulating results from "for" loop in a list/array
Dear R users, I would like to accumulate objects generated from 'for' loop to a list or array. To illustrate the problem, arbitrary data set and script is shown below, x <- data.frame(a = c(rep("n",3),rep("y",2),rep("n",3),rep("y",2)), b = c(rep("y",2),rep("n",4),rep("y",3),"n"), c =
2011 Dec 04
2
frequency table?
Hello R-users, I've got a file with individuals as colums and the clusters where they occur in as rows. And I wanted a table which tells me how many times each individual occurs with another. I don't really know how such a table is called...it is not a frequency table....My eventual goal is to make Venn-diagrams from the occurence of my individuals. So I've this: cluster ind1 ind2
2002 Jun 17
2
layout() and postscript()
HI, I would like to know if it's possible to create a postscript file with multiple graphs . I'm creating some graphs by the means of a loop and I want to save each graph in the same file (splitting making the device by the number of graphs). Do I have to use the par(matrix()) option, the layout() function or the split.screen() one ? Thanks Nolwenn
2002 Aug 23
2
axis() plot() - step
Hi, Stupid question I guess but I can't figure out how to have a span of 0.5 instead of 1 in my graph. Actually, I want to create a plot with x(-2,2) and y(-2,2) and an step of 0.5 along the axis. Does somebody can help me ? Is it in par(), axis() or plot() that I have to add something ? Thanks Nolwenn *------------------------------------------* Nolwenn Le Meur INSERM U533 Facult? de
2011 Mar 09
2
Cleaning date columns
Hi Everyone, I have the following problem: data <- structure(list(prochi = c("IND1", "IND1", "IND1", "IND2", "IND2", "IND2", "IND2", "IND3", "IND4", "IND5"), date_admission = structure(c(6468, 6470, 7063, 9981, 9983, 14186, 14372, 5129, 9767, 11168), class = "Date")), .Names =
2003 Nov 28
1
mark axis
Maybe a stupid question: In a plot, which parameter(s) ables to visualize the axis like in a coplot where the axis is also visible in the plot background ? Thanks Nolwenn ******************************************** Nolwenn Le Meur INSERM U533 Facult? de m?decine 1, rue Gaston Veil 44035 Nantes Cedex 1 France Tel: (+33)-2-40-41-29-86 (office) (+33)-2-40-41-28-44 (secretary)
2011 Dec 04
1
similarity matrix
Hello R-users, I've got a file with individuals as colums and the clusters where they occur in as rows. And I wanted a similarity matrix which tells me how many times each individual occurs with another. My eventual goal is to make Venn-diagrams from the occurence of my individuals. So I've this: cluster ind1 ind2 ind3 etc. 1 0 1 2 2 3 0 1 3
2002 May 30
3
savePlot without displaying it
Hi, I would like to save a plot without opening the device window (no display). Is it possible ? How can I do it ? Thanks Nolwenn *------------------------------------------* Nolwenn Le Meur INSERM U533 Facult? de M?decine 1, rue Gaston Veil 44035 Nantes cedex 1 t?l: +33(0)2-40-41-29-86 fax: +33(0)2-40-41-29-50 e-mail: nolwenn.lemeur at nantes.inserm.fr
2004 Apr 09
1
generating 00Index.html
Hi, I've started to create the documentation of my package. I've generate a pdf and the different html files from .Rd files. However I don't know how to automatically generate the 00Index.html. Do I have to write one in latex style and convert it or can I use the CONTENTS, INDEX, or Rd files. Thanks Nolwenn ******************************************** Nolwenn Le Meur INSERM U533
2011 Dec 03
1
pivot table help
Hello R-users, I've got a huge table with about 20.00 rows and 50 columns. The table now has headers as Members1, Members2 etc. My data are 8 different individuals. And I've got a column with clusters. So each individual belongs to different clusters and can occurs multiple times within a cluster (that's the reason that there can be more than 8 members). I want a presence/ absence
2002 Oct 16
0
CGI and RSPerl
Hi, Does anybody try to write CGI script using RSPerl package ? I am interested in RWeb but that doesn't really do what I want. In fact I would like the user to load the file to analyze; then a R program will treat the data ,display resulting graphs and save results in text files. I have test the following script by John Barnett without success. #!/usr/lib/R/bin/R.bin --source
2002 Dec 19
1
lattice and display
Hi, I have just started using lattice and it looks great. But I already have 3 questions about xyplot display. ---------------------------------------------------------------------------- --------------------------------- 1.I would like to create two differeny xyplot with different color to identify my different groups but I have trouble applying colors. Here are the scripts
2010 Jan 17
3
enty-wise closest element
Dear R-users, i have a simple problem maybe, but i don't see the solution. i want to find the entry-wise closest element of an vector compared with another. ind1<-c(1,4,10) ind2<-c(3,5,11) for (i in length(ind2):1) { print(which.min(abs(ind1-ind2[i]))) } for ind2[3] it should be ind1[3] 10, for ind2[2] it should be ind1[2] 4 and for ind2[1] it should be ind1[1] 1. but with the
2009 Aug 09
1
problem adding columns to matrix
Hi all, i purchased a copy of the book Morphometrics with R by Springer. at the end of each chapter there are exercises to train what you just read and (hope) learned... so i have this problem: Define a hypothetical data frame containing five measurments normally distributed(size,head,pectoral,area,weight) for four individuals (named ind1, ind2, etc). ADD A COLUMN corresponding to the
2011 Dec 05
1
Subsetting a data frame
Hi R users, I really need help with subsetting data frames: I have a large database of medical records and I want to be able to match patterns from a list of search terms . I've used this simplified data frame in a previous example: db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1, 2, 1.3, 3), test2 = c(56L, 27L, 58L,
2011 Aug 10
2
choosing selective data with permutations
Hello, I am a R beginner and hoping to obtain some hints or suggestions about using permutations to sort a data set I have. Here is an example dataset: Ind1 11 00 12 15 28 Ind2 21 33 22 67 52 Ind3 22 45 21 22 56 Ind4 11 25 74 77 42 Ind5 41 32 67 45 22 This will be read into a variable using read.table. What I want to do is permute these individuals and every
2010 May 03
3
how to rewrite this for loops in matrix form without loop
x0=rnorm(100) y0=rpois(100,3)+1 ind=as.data.frame(table(y0)) ind1=ind[,1] ind2=ind[,2] phi=NULL for (i in 1:length(ind2)){ phi[i]=sum(x0[y0==ind1[i]])/ind2[i] } [[alternative HTML version deleted]]