similar to: Applying some equations over all unique combinations of 4 variables

Displaying 20 results from an estimated 100 matches similar to: "Applying some equations over all unique combinations of 4 variables"

2006 Aug 08
2
Getting data out of a loop
A stupid question but I just cannot see how to do this. I have a loop that does some calculations and puts the results in a vector for each iteration, but I cannot see how to get the data out of the loop in such a way that I can use it. I can print it but how do I get it into a set of vectors or what ever. Any help gratefully received. Thanks Example cata <- c( 3,5,6,8,0, NA) catb <-
2006 Aug 28
2
Cannot get simple data.frame binding.
I am stuck on a simple problem where an example works fine but the real one does not. I have a data.frame where I wish to sum up some values across the rows and create a new data.frame with some of old data.frame variables and the new summed variable. It works fine in my simple example but I am doing something wrong in the real world. In the real world I am loading a labeled data.frame. The
2007 Feb 02
1
Assigning labels to a list created with apply
I have a simple data base and I want to produce tables for each variable. I wrote a simple function fn1 <- function(x) {table(x)} where x is a matrix or data.frame. and used apply to produce a list of tables. Example below. How do I apply the colnames from the matrix or names from the data.frame to label the tables in the results in the list. I know that I can do this individually but
2007 Feb 07
6
setting a number of values to NA over a data.frame.
This is probably a simple problem but I don't see a solution. I have a data.frame with a number of columns where I would like 0 <- NA thus I have df1[,144:157] <- NA if df1[, 144: 157] ==0 and df1[, 190:198] <- NA if df1[, 190:198] ==0 but I cannot figure out a way do this. cata <- c( 1,1,6,1,1,NA) catb <- c( 1,2,3,4,5,6) doga <- c(3,5,3,6,4, 0) dogb <- c(2,4,6,8,10,
2009 Sep 19
1
Re-order columns
Dear R'sians, Would really appreciate if you could suggest a more efficient way to order the columns of a dataset. The column names of the dataset contain indices separated by a period. Following are examples of my code and the dataset. oC <- function(tg=x2) { lth <- length(grep("T",names(tg))) thix <-
2006 Aug 07
0
Trying to do aseries of subsets with function or for loop
I want to calculate the "scat" etc, values for each level of id, output a vector of these values that is a <- c(scat, sdog, srat, sbat ) and do an rbind on them. Each level of id has a different value of rate. So far it it looks to me like I can do this by a series of repeated subsets of Df butI would think that I should be able to do this with a function but I am not having
2004 May 24
2
Month names
This is how I get the month names from within R: > mon <- rep(strptime("01/01/1952", format = "%d/%m/%Y"), 12) > mon$mon <- mon$mon + 0:11 > mnam <- months(mon, abbreviate = F) > mnam [1] "januar" "februar" "marts" "april" "maj" "juni" "juli" "august"
2012 Mar 08
6
how to modify the tickment of x-axis
hi I plot a series of observation data every minutes in a day as the attachment below plot(wnd,type='l',lty=1,col='red',lwd=1,xlab=xxlab,ylab=yylab,ylim=YY) In the figure, the x-axis tickment is the number of data How can I change it fore example 1h 2h 3h 4h and so on ? -- TANG Jie Email: totangjie at gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China
2005 Sep 06
9
civil emergency comms: Asterisk + HAM
The disaster in the Gulf coast and the less than optimal initial response suggests to me that citizens must shoulder more responsibility for emergency management. Communications loss must have played a large role in the failures that occurred. I can't help but wonder if there are fewer ham radio operators today and that if there were more, maybe they could make a difference in future
2016 Jan 09
3
Centos 3.8 Server Questions, SeaMonkey Mozilla and Java
On 01/09/2016 11:43 AM, John R Pierce wrote: > On 1/8/2016 2:21 PM, H wrote: >> That was not helpful - I explained that I had to run this version. > > you WANT to run something completely unsupported from about 10 years > ago which apparently requires software thats known to be insecure and > buggy as all heck. its 2015, not 2005, 10 years is an eternity > in the
2007 Jul 11
3
ssh tunneling and maildir
Hello everyone, please keep my CC'd, I'm not on the list. I've been using dovecot happily via an ssh tunnel. My mutt is configured to use IMAP, and the tunnel is as follows in my muttrc: set tunnel="ssh -q mymailhost 'MBOX_LOCKS=fcntl MAIL=/home/jlbec/mail /usr/libexec/dovecot/imap'" It should be pretty obvious that this logs into mymailhost as me (via SSH
2011 Jan 13
0
Help with Data Transformation - RESOLVED
Hi Dennis, SOLVED!!! My thanks to both you, John, and others who chimed in. Took a little more digging before finally working, but it is working! Here's a little more of what I did and the ultimate resolutions: I installed the reshape2 library from CRAN. Executed > (.packages()) [1] "reshape2" "stats" "graphics" "grDevices"
2007 Jun 07
1
User unknown in local recipient table? Dovecot LDA/Postfix
This probably is a postfix problem, but I think there are lots of postfix experts/users on this list, and have heard a lot good things about this list, so I am just giving it a try. Thanks in advance! I am using dovecot-1.0.0-8_56.src.rpm downloaded from atrpms.net, and rebuilt from it(rpmrebuild ...). Postfix is 2.4.3. I followed documents at http://wiki.dovecot.org/LDA and LDA/Postfix, and
2016 Jan 08
4
Centos 3.8 Server Questions, SeaMonkey Mozilla and Java
That was not helpful - I explained that I had to run this version. On January 8, 2016 5:18:36 PM EST, Peter <peter at pajamian.dhs.org> wrote: >On 09/01/16 10:08, H wrote: >> In order to run a certain software package that runs as a java applet >I had to install Centos 3.8 on a 32-bit server. After installation I >upgraded the installation using yum after repointing the
2001 Nov 01
3
Lost backslashes in parse()
I'm comparing R-1.3.0 on Solaris 2.6 to R-1.3.1 on WindowsNT. The following 5-line script returns TRUE on Unix but FALSE on NT: fnam <- tempfile() file.create(fnam) txt <- paste("file.exists(\"", fnam, "\")", sep="") expr <- parse(text=txt) eval(expr) The issue seems to be that backslashes get lost in the parsing. A workaround is to change
2006 Jul 01
1
Uh oh, Error solving...
undefined method `stringify_keys'' for [["Craved"], ["Whole Sale"]]:Array I did this earler in the script how come now it''s yealling? <% catas = Category.find(:all, :order=> "name").map {|u| [u.name]} -%> <p><label for="item_cata">Catagory:</label><br/> <%= select ''item'',
2007 Jun 28
3
Function call within a function.
I am trying to call a funtion within another function and I clearly am misunderstanding what I should do. Below is a simple example. I know lstfun works on its own but I cannot seem to figure out how to get it to work within ukn. Basically I need to create the variable "nts". I have probably missed something simple in the Intro or FAQ. Any help would be much appreciated. EXAMPLE
2011 May 29
22
[Bug 8177] New: Problems with big sparsed files
https://bugzilla.samba.org/show_bug.cgi?id=8177 Summary: Problems with big sparsed files Product: rsync Version: 3.0.8 Platform: x64 OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: joluinfante at gmail.com
2010 Sep 30
3
world of warcraft Cata droping openGL
it seems wow is moving towards GLL for the Macs and could be dropping the normal OpenGL. how is this going to effect running WOW with wine ? right now running wow under directX is painful and so slow on my system thats it just not a option.
2011 Jan 23
7
Wine, Wow Cata and D3D
Running Ubuntu 10.04, Nvidia driver version 260.19.29, 3 GB RAM, AMD Phenom Quad-Core, wine-1.3.11. I notice no difference in performance whether OpenGL is enabled or not. Does this mean D3D is now working and I don't need OpenGL now? I get close to 80fps in some places, which is great, but in a raid or other places with a lot of toons and activitiy, Wow practically freezes up and becomes