search for: comprise

Displaying 20 results from an estimated 793 matches for "comprise".

Did you mean: comprises
2009 Aug 12
3
Random sampling while keeping distribution of nearest neighbor distances constant.
Dear All, I cannot find a solution to the following problem although I imagine that it is a classic, hence my email. I have a vector V of X values comprised between 1 and N. I would like to get random samples of X values also comprised between 1 and N, but the important point is: * I would like to keep the same distribution of distances between the X values * For example let's say N=10 and I have V = c(3,4,5,6) then the random values could be 1,...
2010 Sep 26
2
Splitting a data frame into several completely separate data frames
...e following data, and my coding attempt: x <- read.table(textConnection("id type number indv.1 bagel 6 indv.2 bagel 1 indv.3 donuts 10 indv.4 donuts 9"), header = TRUE) closeAllConnections() x.split <- split(x, x$type) This is where I'm stuck. Now I have one "list" comprised of different data frames, but what I want is separate data frames. Ideally, I'd like to design a loop to give sequentially-numbered names to the separate data frames I create. This is because my real data will have many more than two groups (i.e., many more types of things than just "...
2012 Jan 18
5
Executable expressions
Given a<-"c(1,2,3,4,5)" How canĀ  I evaluate the variable a to return a (numeric) vector comprising of 1,2,3,4,5? Thanks. [[alternative HTML version deleted]]
2003 Jun 08
6
Basic question on applying a function to each row of a dataframe
Hi, I have a function foo(x,y) and a dataframe, DF, comprised of two vectors, x & w, as follows : x w 1 1 1 2 2 1 3 3 1 4 4 1 etc I would like to apply the function foo to each 'pair' within DF e.g foo(1,1), foo(2,1), foo(3,1) etc I have tried >apply(DF,foo) >apply(DF[,],foo) >apply(DF[DF$x,DF$w],foo) However, none of...
2010 Jan 09
4
How do I...
Only tangentially on topic, at best... Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF? I can't think of a way to do that, all I can come up with would result in a pile of PDFs, one per html. But there's gotta be a better way. Suggestions welcome.
2010 Jul 16
1
I need help making a data.fame comprised of selected columns of an original data frame.
I must have missed something simple, but still, i don't know what. I obtained my basic data as follows: x <- sprintf("SELECT m_id,sale_date,YEAR(sale_date) AS sale_year,WEEK(sale_date) AS sale_week,return_type,0.0001 + DATEDIFF(return_date,sale_date) AS elapsed_time FROM `merchants2`.`risk_input` WHERE DATEDIFF(return_date,sale_date) IS NOT NULL") moreinfo <- dbGetQuery(con,
2009 Oct 22
3
PDF too large, PNG bad quality
...ics{...}' and run the document through 'pdflatex'. I tried both, creating PNG with 'png(...)' and converting from PDF to PNG using 'convert' from ImageMagick. So my questions are: - Is there a way to produce sufficiently lean PDFs directly in R, even when the plot comprises several million points? - How to produce a PNG that still looks nice when included in a LaTeX PDF document? Any hints will be greatly appreciated. Thank you Lasse -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature...
2009 May 19
1
nufa and missing files
We're using gluster-2.0.1 and a nufa volume comprised of thirteen subvolumes across thirteen hosts. We've found today that there are some files in the local filesystem associated with the subvolume from one of the hosts that are not being seen in the nufa volume on any gluster client. I don't know how or when this happened, but now we have...
2009 Nov 03
1
Stacked barplot: specifying individual bar hue/luminance
Hi all, I'm trying to generate barplots from simple but long (~100000-row) data files, in which each bar will comprise two stacked 'sub-bars'. All the upper sub-bars will have the same hue, and all the lower bars will, likewise, have another uniform hue. However, I wish to specify the luminance (aka brightness) of each bar (i.e., each whole bar comprising two sub-bars) separately, and I wish the plot to r...
2004 Nov 01
4
deleting specified NA values
I have a data set of about 10000 records which was compiled from several smaller data sets using SPSS. During compilation 88 false records were accidentally introduced which comprise all NA values. I want to delete these records but not other missing data. The functions na.exclude and na.omit seem to remove all values of NA? How can I delete just the relevant NA's? . i.e. I want to delete all records in the data frame DATA where the field age contains NA values Regards...
2011 Aug 19
1
gsub for numeric characters in string
...ich is a series comprising the lengths of different items, all preceded by a colon. > len [1] ":328" ":154" ":135" [4] ":147" ":30" ":50" [7] ":252" ":45" ";" 'lenplustate" is a series that is comprised of an attribute of each item preceding the colon, followed by the length (as defined in len). > lenplusstate [1] "1:328" "1:154" "4:135" [4] "NA:147" "3:30" "2:50" [7] "NA:252" "NA:45" "NA;" "...
2008 Oct 18
3
Plot table of counts
I have a data set which is comprised of counts, that is, the number of times a mass spectrometer measured a particular mass at a particular time (the rows and columns of the table). Is there a way to make a plot so that it draws a square at the mass/time spot on the graphic if there is a count and leave it empty if it's empty?
2005 May 04
4
selections of data by one variable
Dear R experts, My problem is as follows: Suppose I have a data frame d comprising two variable a<-c(1:10) & b<-c(11:20). I now want to select a subgroup according the values of b. I know if I just want to select, say, b=17, I can use f<-d[d$b==17] and R will give me > f a b 7 7 17 However, if now I want to select a subgroup according to b==e<-c(13,15,17), then the
2011 Mar 04
3
Generic mixup?
...int function (x, ...) UseMethod("print") <environment: namespace:base> > showMethods("print") Function "print": <not a generic function> Don''t the two results contradict each other? Or do I have a terrible misunderstanding of what comprises a generic function? Thx, Nick Sabbe -- ping: nick.sabbe@ugent.be link: <http://biomath.ugent.be/> http://biomath.ugent.be wink: A1.056, Coupure Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove [[alternative HTML version deleted]]
2005 Apr 13
5
Binary Matrices
I'm wanting to perform analysis (e.g. using eigen()) of binary matrices - i.e. matrices comprising 0s and 1s. For example: n<-1000 test.mat<-matrix(round(runif(n^2)),n,n) eigen(test.mat,only.values=T) Is there a more efficient way of setting up test.mat, as each cell only requires a binary digit? I imagine R is setting up a structure which could contain n^2 floats. Thanks in advance
2018 Jan 10
4
R-hts
dear all, i need some help in structuring my data file for a hierarchical time series analysis. can someone help please ? i have a 600 row database in the nature of a panel data, with 3 time series values of interest. the data also has 4 classificatory variables comprising a code for each entity in the panel, a value for time (year), and classification of type of entity and a further sub-group
2008 Oct 15
3
request: How can we ignore a component of list having no element
Dear friends There is a list of arrays comprising different no of rows and columns even sometimes NULL, such as [[2]] given below. How can we ignore [[2]] or others like this in the complete list. Any help in this regard is needed. Thanks [[1]] [,1] [,2] [1,] 3 1 [2,] 3 1 [3,] 3 1 [[2]] NULL [[3]] [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3 1
2010 Sep 11
2
How to comment out entire code parts in Sweave files
Hi, I am wondering if there is any convenient way to comment out an entire region of a Sweave file which comprises R and Latex code. Currently I'm doing it for the R and Latex parts separately or transfer the unwanted part into a different file. But both are not great solutions. (I am doing this when updating old files and debugging) Is there a way to do this with an equivalent of \iffalse \fi or is th...
2003 Jul 31
2
[LLVMdev] Location of the x86 JIT compiler tool
Hi, I'm mainly insterested on the x86 JIT compiler. /lib/Target/X86/README.txt talks about 'Jello', the JIT compiler, which should be on /tools/jello. I think that changed to /tools/lli and now comprises a bytecode interpreter as well. Is that right? -- Oscar
2007 Jan 03
2
An interface can reference multiple zones...
...ne that can handle both connections with the same restrictions, like below: /etc/shorewall/zones - System A: #ZONE TYPE OPTIONS IN OUT # OPTIONS OPTIONS road ipv4 On system A, the remote clients will comprise the road zone. In /etc/shorewall/interfaces on system A: #ZONE INTERFACE BROADCAST OPTIONS road tun+,tap+ In /etc/shorewall/tunnels on system A, we need the following: #TYPE ZONE GATEWAY GATEWAY ZONE openvpnserver:1194 ne...