search for: indat

Displaying 10 results from an estimated 10 matches for "indat".

Did you mean: inat
2004 Feb 05
2
Histograms by two factors
...ets. That is, I want ot print out the mean STD and Histogram for each ITEM code within each DELIVERABLE code. In addition I can only get to view the histogram for the last item. How do you get R to stop overriding the histogram for eg level 1 for factor 1 by level 2 of factor 1? thanks X11() Indat <- read.table ("C:/testdata.txt",header=T) B <- c(Indat[,1],Indat[,2],Indat[,3],Indat[,4],Indat[,5]) y <- Indat[,5]/Indat[,4] DELIV <- Indat[,1] ITEM <- Indat[,3] Df1 <- factor(DELIV) Df2 <- factor(ITEM) d1 <- tapply(y,Df1, mean) d2 <- tapply(y, Df1,sd) d3 &lt...
2002 Jun 11
2
Puzzled by what Rprof is telling me
...hat could be, and would appreciate any suggestions. Thanks -Don Details, unfortunately lengthy, are here: The snippet of code I'm profiling is given below. 'inmat' is a numeric matrix with 128347 rows; I need to apply a function, sfun(), to each of 4191 subsets of rows, indexed by indat$grpi. sfun() is fairly complex, and requires information from all of the columns of inmat, so simple uses of, for example, aggregate() don't do the job. Rprof('Rpf3n') for (i in unique(indat$grpi)) { ssnew[i,] <- sfun(inmat[indat$grpi==i,,drop=FALSE]) } Rprof(NULL) -----------...
2012 Mar 15
2
summing "transfers"
...many transfers there are between MT-802 and MT-901. That is, when one of them is VEHx and the other is VEHx+1 or VEHx-1 E.g. {VEH1 = MT-802 AND VEH2 = MT-901 } plus {VEH2 = MT-901 AND VEH3 = MT-802} plus all the other combinations.... Someone suggested: colvf <- 81 # column of first VEH in indat colvl <- 88 # column of last VEH in indat tapply( rep( SubOre$expwgt, colvl-colvf ), list( as.matrix(SubOre[ ,colvf:(colvl-1)]), as.matrix(SubOre[ ,(colvf+1):colvl]) ), sum) but there are too many rows and columns to print. Robert Farley LACMTA 1 Gateway Plaza Los An...
2010 Aug 29
1
Finding functions of large dataset for numerical integration
Hello everyone, I have been trying to figure out away to integrate under a spline produced by the package tps(fields). As the package does not output functions I am trying to do something similar to the trapezium rule. My data are 3D (x, y & z). I have extracted from the surface output by Tps the values of z at regular intervals so that I have a grid of figures, for example: 1 4 6 6 8 8
2002 Feb 14
1
immortal connections
I have several data input functions that include a construct like the following: indat <- function(stuff) { [...] awkp <- paste("awk ...yada yada...", stuff, etc.) scan(pipe(awkp),quiet=TRUE) } I use these functions a lot, and as I do, a lengthening list of closed, but undestroyed, connections accumulates. Ultimately this appears to stuff things up...
2001 Feb 27
1
comments on documentation
...t also handles invalid names, e.g. containing underscores. You can analyze the SPSS data as read in, but any names containing underscores cause an error. I also found that the SPSS names are all upper case. Maybe that could be changed in new versions of read.spss. A workaround is: library(foreign) indat <- read.spss("c:/data/ozs/eind.sav") dat <- as.data.frame(indat) names(dat) <- tolower(names(dat)) attach(dat) An example along these lines would help newbies a lot, I think. I also disagree with the import/export documentation, that importing files from foreign packages should...
2010 Dec 29
5
linear regression for grouped data
Hi, I have been examining large data and need to do simple linear regression with the data which is grouped based on the values of a particular attribute. For instance, consider three columns : ID, x, y, and I need to regress x on y for each distinct value of ID. Specifically, for the set of data corresponding to each of the 4 values of ID (76,111,121,168) in the below data, I should invoke
2006 Mar 01
2
In_place_editor in a For loop
I''m using Ajax to create a list of items. Once these items have been created the user can edit in place and delete them. I''ve got the ajax working for delete and removing the element from the page, but the in_place_editor_field doesn''t seem to like being in a for loop. I''ve got in_place_editor working for single items, but what''s the syntax
2006 Dec 11
21
iptables 1.3.7, kernel 2.6.19, ROUTE and Layer7 issues
Hi, I''m having problems with this configuration: iptables 1.3.7 (vanilla or repackaged for fc5) kernel 2.6.19 (vanilla) ROUTE 1.11 (last pom-ng) layer7-filter 2.6 (last in sf.net) connlimit (last pom-ng) When I try to use -j ROUTE in any chain in mangle table I have this error: [root@myhost ~]# iptables -v -t mangle -A POSTROUTING -p tcp --dport msnp -j ROUTE --gw
2006 Jul 26
5
linux-2.6-xen.hg
Hi, Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being updated? if not, what''s the preferred Linux tree to track that has all of the Xen bits? Thanks, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel