similar to: [solutions] "tapply versus by" in function with more than 1 arguments

Displaying 20 results from an estimated 800 matches similar to: "[solutions] "tapply versus by" in function with more than 1 arguments"

2008 Oct 01
3
"tapply versus by" in function with more than 1 arguments
Hi. I searched the list and didn't found nothing similar to this. I simplified my example like below: #I need calculate correlation (for example) between 2 columns classified by a third one at a data.frame, like below: #number of rows nr = 10 #the third column is to enforce that I need correlation on two variables only dataf =
2008 Aug 27
0
Can't export [homes] share.
?? Hi to everybody. ? ?? I have an Ubuntu?server running Samba 3, and its 25 Kubuntu clients. This server?does authenticate the users added (to Samba and to Ubuntu linux itself), but those users can't see their /home directory. What's going wrong??? ? ?? Below is the server's smb.conf: ---------------------------------------------------------------------------------------------------
2008 Oct 10
1
Creating a new connection type
Hello. I have an instrument, actually a step motor indexer that I want to drive from R. It uses an RS-232 connection. I already have a few C subroutines that I access from R but I would like to be able use R's connection related functions - readLines, writeLines, cat, read.table, etc - directly. Does any one have any suggestions on how a I should proceed to create a new connection type? Is it
2005 Oct 07
1
returning a modified fix()-ed dataframe
Dear all, In order to ease the transition from SPSS to R for some of my colleagues, I am trying to create a function which would show the variables and their labels (if those exist), using function "label" in package Hmisc. A toy example would be this: my.data <- data.frame(age=c(24,35,28), gender=c("Male", "Female", "Male")) require(Hmisc)
2010 Jul 22
1
Updating a Data Frame
Hi, I have a global data-frame in my R script. At some point in my script, I want to update certain columns of this data-frame by calling in an update function. The function looks like this: # get events data. This populates a global event data frame in the R-script events <- getEvents(con, eventsFilePath) # events has columns eventid, timeStamp, isSynchronized, timeDiff; with millions of
2001 Jul 31
1
Grátis!! Registe o seu dominio na Internet
REGISTE O SEU DOMÍNIO GRÁTIS Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html, aproveite esta oportunidade para criar um endereço mais simples e fácil de comunicar, do tipo, www.minha_pagina.web.pt, SEM PAGAR NADA. Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html,
2001 Jul 31
0
Grátis!! Registe o seu dominio na Internet
REGISTE O SEU DOMÍNIO GRÁTIS Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html, aproveite esta oportunidade para criar um endereço mais simples e fácil de comunicar, do tipo, www.minha_pagina.web.pt, SEM PAGAR NADA. Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html,
2004 Aug 06
0
Grátis!! Registe o seu dominio na Internet
REGISTE O SEU DOMÍNIO GRÁTIS Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html, aproveite esta oportunidade para criar um endereço mais simples e fácil de comunicar, do tipo, www.minha_pagina.web.pt, SEM PAGAR NADA. Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html,
2004 Aug 06
0
Grátis!! Registe o seu dominio na Internet
REGISTE O SEU DOMÍNIO GRÁTIS Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html, aproveite esta oportunidade para criar um endereço mais simples e fácil de comunicar, do tipo, www.minha_pagina.web.pt, SEM PAGAR NADA. Se tem um daqueles endereços complicados do tipo, http://www.endere\o.pt/paginas_pessoais/~minha_pagina/index.html,
2009 Jun 26
5
(performance) time in Windows vs Linux
Hi, all. I began to migrate my R codes from Windows to Linux and surprised me with an old question. I simplified the problem and made a little test to compare times at same computer and the Linux time is worse (not so little) than Windows time: 28 vs 53 seconds. I make an example (below) to facilitate all to see the difference. I also build from source (it's my first time) a version of R to
2011 Nov 15
2
Models with ordered and unordered factors
Hello; I am having a problems with the interpretation of models using ordered or unordered predictors. I am running models in lmer but I will try to give a simplified example data set using lm. Both in the example and in my real data set I use a predictor variable referring to 3 consecutive days of an experiment. It is a factor, and I thought it would be more correct to consider it ordered. Below
2006 Mar 07
3
glm automation
Hello, I have two problems in automating multiple glm(s) operations. The data file is tab delimited file with headers and two columns. like "ABC" "EFG" 1 2 2 3 3 4 dat <- read.table("FILENAME", header=TRUE, sep="\t", na.strings="NA", dec=".", strip.white=TRUE) dataf <- read.table("FILENAME", header=FALSE,
2008 Dec 01
1
Help with lattice graphics
Hi, I like the formatting and the appearance of lattice plots. But I have not succeeded in gettting the right format in my plots with the lattice package in one of my applications. In?the code shown below, I start by constructing a general data frame and show my attempts with the lattice package commands. After that, I use the graphics package and show the kind of plot that I want to get. I would
2011 Mar 05
2
please help ! label selected data points in huge number of data points potentially as high as 50, 000 !
Dear All I am reposting because I my problem is real issue and I have been working on this. I know this might be simple to those who know it ! Anyway I need help ! Let me clear my point. I have huge number of datapoints plotted using either base plot function or xyplot in lattice (I have preference to use lattice). name xvar p 1 M1 1 0.107983837 2 M2 11
2010 Aug 12
2
Append to csv without header
Hi, I am writing a function that writes to a csv file for every call. However, for the subsequent calls, I want to append the data to the existing csv file without appending the column names again. I tried searching in the previous posts, but I am stuck with different errors. Here is what I am doing (dataF is a data-frame):- outputFilePath <- paste(getwd(), "/",
2009 Aug 12
2
Symbolic references - passing variable names into functions
Hello All, I am trying to write a function which would operate on columns of a dataframe specified in parameters passed to that function. f = function(dataf, col1 = "column1", col2 = "column2") { dataf$col1 = dataf$col2 # just as an example } The above, of course, does not work as intended. In some languages one can force evaluation of a variable, and then
2011 Mar 13
1
replace with quantile value for a large data frame...
Dear R-Experts I am sure this might look simple question for experts, at least is problem for me. I have a large data frame with over 1000 variables and each have different distribution( i.e. have different quantile). I want to create a new grouped data frame, where the new variables where the value falling in first (<25%), second (25% to <50%), third (50% to <75%) and fourth quantiles
2005 Feb 20
2
matrix operations
In R, I'm imported a data frame of 2,321,123 by 4 called "dataF". I converted the data frame "dataF" to a matrix dataM <- as.matrix(dataF) Does R have an efficient routine to treat the special elements that contain "inf" in them. For example, can you separate the rows that have "inf" elements from the matrix into a separate matrix without
2013 Jan 26
2
different legends in lattice panels
Hi listers, I want to make lattice plots xyplots with the indication of legends inside each panel with only the points and the lines actually ploted inside each given panel according to the group(ing) factor. The code below shows what I have achieved so far and I hope will make clear what I want to have. It seems to me that my solution is a very "dirty hack" and there certainly is
2011 Apr 18
1
covariance matrix: a erro and simple mixed model question, but id not know answer sorry
Dear list I need your help: Execuse me for my limited R knowledge. #example data set set.seed (134) lm=c(1:4) block = c(rep(lm,6)) gen <- c(rep(1, 4), rep(2, 4), rep(3, 4), rep(4, 4),rep(5, 4),rep(6, 4)) X1 = c( rnorm (4, 10, 4), rnorm (4, 12, 6), rnorm (4, 10, 7),rnorm (4, 5, 2), rnorm (4, 8, 4), rnorm (4,7, 2)) X2 = X1 + rnorm(length(X1), 0,3) yvar <- c(X1, X2) X <- c(rep( 1,