similar to: colMeans()

Displaying 20 results from an estimated 1000 matches similar to: "colMeans()"

2012 Dec 24
2
colmeans not working
[text file is also attached in case you find the format of email difficult to understand] Dear useRs,You must all the planning for the christmas, but i am stucked in my office on the following issue i had a file containg information about station name, year, month, day, and discharge information. i opened it by using following command > dat1<-read.table("EL.csv",header=TRUE,
2008 Mar 27
2
colMeans in a data.frame with numeric and character data
Hi all, I would like to know if it is posible by, someway, to get colMeans from a data.frame with numeric as well as character data, dispersed all over the object. Note that I would like to get colMeans neglecting character data. I am really in need of some function proceeding in that way… All the best Diogo André Alagador [[alternative HTML version deleted]]
2005 Apr 01
2
Error in colMeans ... what's wrong with my data?
Having searched and searched I still haven't found what's the problem with my data (I've attached the relevant file). Every time I tried to use the CANCOR-Function I got error messages. So I turned to check my two sets of variables separately by using the "colMeans"-Function. With one set no problem .. but with the other. My input : > struktur <-
2011 Mar 28
0
Bootstrapping the colMeans statistic
I have a fair bit of experience with S-Plus and have been asked to port some of my S-Plus bootstrapping functions to R, to which I am relatively new, Needless to say, I've run into some problems. In particular, I need to perform bootstrap resampling of the colMeans function using a moving blocks bootstrap, where the blocks are row indices. It's easy to build a function that allows me
2007 Sep 04
2
Howto sort dataframe columns by colMeans
I read from external data source containing several columns. Each column represents value of a metric. The columns are time series data. I want to sort the resulting dataframe such that the column with the largest mean is the leftmost column, descending in colMean values to the right. I see many solutions for sorting rows based on some column characteristic, but haven't found any
2005 Jan 11
1
Please use colMeans()! was: Re: Calculate Mean of Column Vectors?
There are indeed speed advantages in using colSums etc. However the disadvantage is that the newbie doesn't always find the power inherent in the apply, sapply, tapply and mapply. For many things that I do, the speed is the least of my worries; although I take the point that using apply for means or sums in packages that are distibuted to others is not the way to go. As many of us have found
2002 Jul 31
2
ogg: another tag?
I've learned that I can make a tag with vorbisgain that tells the player at what volume a track is to be played to achieve a certain level of loudness. Is it possible that there will be a tag that tells the player for instance to add more bass when it plays a track? Ore more treble? With such tags it would be possible to customize the sound of a track according to my wishes - without
2001 Dec 10
2
Corrupt .RData
I'm using R 1.3.1 on a Windows NT 4.0 machine. As you might guess my machine crashes on me from time to time :-| So far, forcing a reboot via the Taskmanager has worked reasonably well: any open R session would enquire politely whether to save, and do so if requested. This time, it has not worked out. I get a 'Fatal Error: unable to restore saved data in .RData' message and R
2008 Jan 08
1
cursor position on image
Hi, I am using the EBImage package for image display and analysis and want to read the cursor (mouse) position on the image. The function "locator()" would be ideal, but this appears to work only on plots, not images. > a <- Image((0:(w^2))/w^2, c(w,w)) > if ( interactive() ) display(a) > locator(n = 10, type = "p") Error in locator(n = 10, type = "p")
2009 Oct 28
1
output of "for"
Hello! I've got troubles on following thing: As output I need a string like: INPUT_FILENAMES = H:\\AKK_temp\\Modis\\MOD13Q1\\austria\\MOD09Q1.A2008073.h18v04.005.2008083134952.hdf|H:\\AKK_temp\\Modis\\MOD13Q1\\austria\\MOD09Q1.A2008073.h19v04.005.2008082182221.hdf The filenames (dates) are with pathname (wrkdr) and separated with "|". The number of input filenames changes
2014 Feb 04
0
Statistician at UNODC Vienna (Fwd: Statistiker für consultancy gesucht)
Dear List, please find here an interesting job opportunity at the UNODC (SASS) in Vienna. If you are interested contact directly Ms. Irmgard Zeiler (Irmgard.ZEILER at unodc.org). good luck Matteo Mattiuzzi >>> Irmgard ZEILER <Irmgard.ZEILER at unodc.org> 02/03/14 5:02 PM >>> Dear all, I would like to kindly ask your assistance in my search for a consultant (short
2010 Jul 20
2
Means from selected columns in a data frame
Hi all, I have a dataframe with survey data. Now I want to calculate means from several but not all columns (e.g. a1, a2, a3) and save them in a new separate column (e.g. a). Like: a = mean(a1, a2, a3) Can someone help me or give me the right key word to look for? Thanks [[alternative HTML version deleted]]
2010 Jun 01
2
Problem using apply
Hello , I can not get apply function to do what I want when doing stuff on rows. Let's say I want to divide the rows of matrix by their mean, the below show you get the same result weather you use 1 or 2, i.e. same result for columns than for means..:( Thanks a lot for the help, m = matrix( c(1,4,7,4,5,8,7,8,9), nrow = 3 ) divideByMean = function( v ){ return(
2006 Aug 16
3
separate row averages for different parts of an array
I have an array with 44800 columns and 24 rows I would like to compute the row average for the array 100 columns at a time, so I would like to end up with an array of 24 rows x 448 columns. I have tried using apply(dataset, 1, function(x) mean(x[])), but I am not sure how to get it to take the average 100 columns at a time. Any ideas would be welcomed. thanks, Spencer [[alternative HTML
2002 Jan 30
1
Grid won't load on Windows NT
Dear list, I have problems loading the grid library; running > library(grid) results in Error in .Call("L_initGrid"): Call function name not in load table Error in library(grid): .First.lib failed PC: Windows NT 4.0 SP6 on a Ghz-Pentium machine with 256 MB memory R: version 1.4.0 patched (23/01/02) grid: 0.5-1, built 26/01/02 I haven't found this on CRAN; any ideas would be
2006 Sep 07
2
Matrix package in R-2.4.0alpha
In a newly downloaded version (today) of R-2-4-0alpha, with all packages from CRAN also installed today, I get: > library(Matrix) Erro en loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : in 'Matrix' methods specified for export, but none defined: BIC, anova, coef, confint, deviance, fitted, fixef, formula, head, lmer, logLik, mcmcsamp, plot,
2008 Oct 17
2
function help
Hi everyone, I have dataset which I make a sample of it couple of times and each time I get the mean and standard deviation of each row for each sample. I have a function for that, which takes the name of the file and number of times to sample and then returns the mean and standard deviation for each row in each sample. Sample=function(name, n){
2006 Feb 28
2
Elegant way to express residual calculation in R?
Hi All, I am illustrating a simple, two-way ANOVA using the following data and I'm having difficulty in expressing the predicted values succinctly in R. X<- data.frame(read.table(textConnection(" Machine.1 Machine.2 Machine.3 53 61 51 47 55 51 46 52 49 50
2011 Dec 19
2
Summing x1 to x6
Suppose I have the following: x1<-as.vector(rnorm(10)) x2<-as.vector(rnorm(10)) x3<-as.vector(rnorm(10)) x4<-as.vector(rnorm(10)) x5<-as.vector(rnorm(10)) x6<-as.vector(rnorm(10)) x7<-as.vector(rnorm(10)) x8<-as.vector(rnorm(10)) x9<-as.vector(rnorm(10)) x10<-as.vector(rnorm(10)) I would like the mean of x1 to x6 for each vector position. I would do something else
2009 Jul 13
1
Add grand mean to every entry in a matrix
Hi, I have a matrix: mymat <- matrix(runif(10*4), ncol=4) I wish to subtract the column means, down the colums, subtract the row means from the rows and add back the grand mean - all the means should be the means of mymat rather than of the new matrix. How can I do this? Any help much appreciated. Thanks Tom _________________________________________________________________