similar to: Summing x1 to x6

Displaying 20 results from an estimated 120 matches similar to: "Summing x1 to x6"

2012 Dec 18
7
Summarizing elements for a data.frame
Hello again, let say we have following data: Dat1 <- structure(list(factor.sample.LETTERS.1.3...6..replace...T.. = structure(c(1L, 3L, 2L, 1L, 3L, 3L), .Label = c("A", "B", "C"), class = "factor"), factor.sample.letters.1.2...6..replace...T.. = structure(c(2L, 2L, 1L, 1L, 2L, 1L), .Label = c("a", "b"), class =
2010 Sep 16
2
question about converting a matrix to a dataframe
First I have a matrix called stocks1: > class(stocks1) [1] "matrix" Here are the first 5 rows of the last 4 columns: > stocks1[1:5,2:5] [,1] [,2] [,3] [,4] [1,] 80.73 31.95 25.4 25.69 [2,] 83.66 31.95 27.12 25.2 [3,] 83.27 32.93 28.74 26.29 [4,] 83.9 34.07 29.77 26.6 [5,] 82.74 35.18 30.24 27.41 Now, why can't I convert this into a dataframe?
2010 Aug 10
3
grep problem decimal points looping
Hi R Users, I have been trying to work out how to rename column names using grep, basically I have generated these column names using tapply: [1] "NAME" "X1.1" "X2.1" "X3.1" "X4.1" "X5.1" "X6.1" "X7.1" "X8.1" [10] "X1.2" "X2.2" "X3.2" "X4.2"
2006 Nov 07
1
plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)
Dear Uwe Ligges , I still can't finish it. *> aa* #my data x1 x2 y 5 0.05 6 4.4180 1 0.50 3 2.6979 4 0.50 9 2.9000 7 0.95 6 2.6230 8 0.95 6 2.9078 9 0.95 6 2.6727 3 1.40 3 2.4203 2 1.40 9 2.5329 6 1.85 6 2.4867 *> attach(aa)* *> persp(x1,x2,y* error in persp.default(x1, x2, y) : increasing 'x' and 'y' values expected
2007 Apr 05
1
Indexing in anova summary output of the form: summary(aov(y ~ x1, Error = (x1/x2)))
Hi, there I'm trying to get the value of the Mean Square from the ANOVA model summary that comes from specifying the error term, and am wondering if one can actually do this ( I know it's possible when using anova(lm) objects and the like, but I'm having a tough time with it under this framework). There does appear to be some indexing in the output of this type, but perhaps not
2006 Apr 20
3
the difference between "x1" and x1
Hello, I am not sure what to write in the subject line, but I would like to take a character string that is a variable in a data frame and apply a function that takes a numeric argument to this character string. Here is a simplified example that would solve my problem. Imagine I have my data stored in a data frame. > x1 <- x2 <- x3 <- x4 <- x5 <- rnorm(20,0,1); > data <-
2008 Mar 19
0
Using Endnote X1 under wine
Hi, I recently started to use Endnote under wine (0.9.57 with Ubuntu 7.10). So far it runs without major problems, however it crashes occasionally (see bug 12075: http://bugs.winehq.org/show_bug.cgi?id=12075). I am interested to hear from other endnote users and their experiences, especially whether you run it together with word or openoffice and why (I have not made up my mind yet). Thanks
2009 Jun 25
0
(Resolved) How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?
Thanks Jorge and Marc, I drew the line using the function: segments(x0, y0, x1, y1) Lesandro ________________________________________________________________________ --- Em qui, 25/6/09, Marc Schwartz <marc_schwartz@me.com> escreveu: De: Marc Schwartz <marc_schwartz@me.com> Assunto: Re: [R] How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?
2012 Sep 11
2
how to qplot two x-axis x1:Farenheit x2:Celsius
Hi, how can i plot two different x axis in a ggplot2 qplot? I want to plot Farenheit and Celsius in one diagram. x1:Farenheit x2:Celsius kind regards, -- Jonas Stein <news at jonasstein.de>
2009 Jun 25
2
How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?
Hello all, How to draw a line in plot when I know the start point(x1,y1) and end point(x2,y2)? I need make this as additional information in the graph: plot(wl2[[1]],wl2[[2]]) I think that is possible make this with the function abline(), is possible? I looked the function lines() too, but don't understand as make. Thanks! Lesandro Veja quais são os assuntos do momento no Yahoo!
2011 Aug 26
7
Odd behavior on Phenom II X6
I built a new box for home use, it is an ASUS M5A99X EVO 990X, the CPU is the 1075T 3.0Ghz AM3. I have 16 gigs of 1333 RAM, it is Patriot brand non - ECC. The disk is a 1TB Western Digital SATA II 3.0 mbps. I am using a USB DVD drive to do the install When I attempt to install either a generic CentOS install, it gives a Kernel panic and dies, the error says something about CPU0 and it reboots
2008 May 03
2
Problems running Endnote X1
Hello All, I'm running hardy heron and wine 0.9.60. Endnote X1 installed from the cd with no problem but I have never been able to run it. Oddly I can run everything else (it has another .exe for updates). As per the AppDB listing I've tried running it using different winvers but still no luck. In web searching this error I found a comment on a different forum indicating others with this
2008 Feb 27
4
Error in cor.default(x1, x2) : missing observations in cov/cor
Hello, I'm trying to do cor(x1,x2) and I get the following error: Error in cor.default(x1, x2) : missing observations in cov/cor A few things: 1. I've used cor() many times and have never encountered this error. 2. length(x1) = length(x2) 3. is.numeric(x1) = is.numeric(x2) = TRUE 4. which(is.na(x1)) = which(is.na(x2)) = integer(0) {the same goes for is.nan()} 5. I also try
2010 Nov 15
3
How to plot effect of x1 while controlling for x2
Hello R-helpers, Please see a self-contained example below, in which I attempt to plot the effect of x1 on y, while controlling for x2. Is there a function that does the same thing, without having to specify that x2 should be held at its mean value? It works fine for this simple example, but might be cumbersome if the model was more complex (e.g., lots of x variables, and/or interactions). Many
2004 Jul 19
10
How to compare X1 = X2 = ... = Xn?
Dear All, I have a data frame with n columns: X1, X2, ., Xn. Now I want to create a new column: if X1 = X2 = . = Xn, the value is 1; Otherwise, the value is 0. How to do that in a quick way instead of doing (n choose 2) comparisons? Thank you, Frank [[alternative HTML version deleted]]
2005 Apr 05
1
summing columns using partial labels
I have a dataset of the form Year tosk.fai tosk.isd tosk.gr ....... tosk.total hysa.fai hysa.isd ... and so on. I want to sum all the columns using the first four letters in the columns label(e.g. 'tosk', 'hysa' etc.). How can you do that? Also, the sums should be without the '.total'column (e.g. 'tosk.total') as this serves as a check that
2011 May 26
2
summing array elements
Hi to everybody I have an array with dimensions 2,4,3,3. Wanting to sum the matrices in the first two dimensions, I'm trying to use the "apply" function, but with no results. Have to say I'm quite new with R syntax. tx in advance marco [[alternative HTML version deleted]]
2007 Aug 21
2
summing columns of data frame by group
I have a data frame and one separate vector that is a grouping variable for the data frame. I would like to take all rows of the data frame belonging to each group and then sum the columns with out using a for statement. Something like: take all rows of group 1 then apply(group1.data,1,sum), but do this without having to do it separately for each group. Any ideas? thank you. Dan
2010 Oct 27
1
return NA instead zero when summing over an empty range?
Dear R users, the colSums function from the base package returns zero if there are no values in a range to be summed over (after removing missing values with na.rm = TRUE). Is there some way to make it return NA in that case just like colMeans does? Or any other function or some good way to achieve that? Any ideas are be welcome. Regards, Martin Ivanov
2010 Nov 13
1
Summing functions of lists
Hi I'm trying to sum functions of lists with different lengths. Here is a simplified example of the problem: r=list(1:3,1:5,1:2) r [[1]] [1] 1 2 3 [[2]] [1] 1 2 3 4 5 [[3]] [1] 1 2 x=function(i,j) sum(j*r[[i]]) # x is a function of two parameters: i & j y=function(j) # y is the sum of x over i + {