similar to: aggregate function with a dataframe for both "x" and "by"

Displaying 20 results from an estimated 120 matches similar to: "aggregate function with a dataframe for both "x" and "by""

2007 Jul 31
1
aggregate.data.frame - prevent conversion to factors? show statistics for NA values of "by" variable?
I have a two question regarding the "aggregate.data.frame" method of the "aggregate" function. My situation: a. My "x" variable is a data.frame ("mydf") with two columns, both columns of type/format "numeric". b. My "by" variable is a data.frame("mybys") with two columns, both columns of type/format "character". c.
2011 May 17
1
Dealing with null values Aggregate function
Hi R users I trying to some aggregate statistics on a very large dataset. The null values are causing a problem. I would like to calculate aggregate values for groups. I am just no sure how to deal with the "" I would ideally like them to ignored ie if there is only 1 value over several columns than that value would be the summary statistic. I have put the following example together to
2012 Feb 03
1
incomplete final line found on <name of my sourced function file>
Dear R-ers, I hope there is a really simple solution to my problem. I've written a function that I saved in an .r file. I source this file in my code. For a while it worked fine. But then when I run the line: source("F mylineplot.r") I started getting a warning: In readLines(file) : incomplete final line found on 'F mylineplot.r' I have no idea why - I tried to check and
2020 May 13
0
Tip/Question about encoding temporary data for storage in Asterisk variable to use in AGI
I wanted to store a JSON object between agi requests for the duration of a call. Turns out asterisk does NOT like a stringified JSON object! AGI complains of "520-Invalid command syntax" So, I just base64 encode/decode it. Assuming I don't need to manipulate the JSON object within Asterisk itself, and I don't want to use a DB or memcache, is this the best/correct method?
2008 Oct 02
1
Help with aggregation
Hi All, I seem to be having a few troubles with aggregating data back onto the the dataframe, I want to take the max value of a user, and then apply this max value back against all id's that match (i.e a one to many matching) Can anyone offer any advice? is there a better way of doing this? Dummy data and code are listed below:- dataset is called Mcookie user_id c_we_conversion 1
2001 Jul 04
3
by/ NA/ barplot
Colleagues ---------------------------------- System info: Version 1.3.0 (2001-06-22) on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I have generated an object (class = by) with NA values and want to plot the output as a bargraph: x2 <- by(scl.nos, species, sum) These data are summed counts of fish by species > x2 INDICES: AGI [1] 0.729927
2007 Aug 28
1
subcripts on data frames (PR#9885)
I'm not sure if this is a bug, or if I'm doing something wrong. =20 =46rom the worms dataframe, which is at in a file called worms.txt at =20 http://www.imperial.ac.uk/bio/research/crawley/therbook <http://www.imperial.ac.uk/bio/research/mjcraw/therbook/index.htm>=20 =20 the idea is to extract a subset of the rows, sorted in declining order of worm density, with only the maximum
2002 Apr 18
5
Two problems
Hello! Two questions: 1: I have to import a matrix of adjacency from a file of a software that is not R (for example "bloc notes" of Windows). The problem is that the matrix is not in the explicit form as 0 1 1 1 0 0 1 0 0 but it is a scattered matrix where in each row there are two nodes that have a direct path. The matrix is a b a c b a c a For example, the first row
2007 Jul 05
3
data messed up by read.table ? (PR#9779)
Full_Name: Joerg Rauh Version: 2.5.0 OS: Windows 2000 Submission from: (NULL) (84.168.226.163) Following Michael J. Crawley "Statistical Computing" on page 9 the worms.txt is required. After downloading it from the book's supporting website, which is http://www.bio.ic.ac.uk/research/mjcraw/statcomp/data/ I visually check the data against the book and they look identical. Then I do
2017 Aug 13
1
Kernel:[Hardware Error]: use of vacuum
On 08/13/2017 05:18 AM, ken wrote: > Also, cowboys scoff, but I always wear a grounded wrist strap when > handling electronics. It's a good idea, especially in low-humidity climates. Also noteworthy: the air moving through a hose can cause a vacuum's hose or attachment to build up a static charge, which is another reason it can be a bad idea to use a vacuum in a computer.
2020 Mar 25
4
Need help to fix bug in rsync
> On Wed, 2020-03-25 at 14:39 +0000, Leroy Tennison wrote: >> Since you state that using -z is almost always a bad idea, could you >> provide the rationale for that? I must be missing something. >> > I think the "rationale" is that at some point the > compression/decompression takes longer than the time reduction from > sending a compressed file. It
2004 Aug 16
1
turning off automatic coersion from list to matrix
Hello, I am having trouble understanding how R is coercing between matrices and lists in the following example. I have an aggregate behavior I like: aggregate(a[,"num"],by=list(product=a[,"product"],region=a[,"region"]), sum) Now in reality I have more columns than just product and region, and need to pick different combinations. So I want to abstract this into a
2015 Apr 30
2
Sieve Rule: What am I missing here?
I have a rule that sends all mail from root to a mailbox, but I want it to NOT send mail from mailing-lists there. if allof (address :contains :localpart "From" "root", not anyof(exists ["List-Id","List-ID","Mailing-List", "X-List-Name","List-Post"])) { fileinto "root-mail"; stop; }
2020 Mar 25
4
Need help to fix bug in rsync
Since you state that using -z is almost always a bad idea, could you provide the rationale for that? I must be missing something. ________________________________ From: CentOS <centos-bounces at centos.org> on behalf of Peter Kjellstr?m <cap at nsc.liu.se> Sent: Wednesday, March 25, 2020 9:34 AM To: Simon Matter <simon.matter at invoca.ch> Cc: centos at centos.org <centos at
2007 Nov 21
1
problem modeling time series
Good afternoon! I'm trying to model a ts but unfortunately i'.m very new to this kind of modeling so i 'll be very grateful if you have an advice. This was my syntax:
2005 Aug 04
7
Frames within rails
What is the best way to create frames in rails? thanks fp
2004 Mar 03
1
Two WINS servers on different subnets
Hi If I connect two LANs (on different subnets) and want to use windows filesharing, I need a WINS server right? Can I have one server on both subnets and make them "talk to each other" ? The problem is that the two networks are connected through a VPN tunnel and I don't want to place a WINS server on just one of them in case the VPN tunnel is lost. I want the subnets to work
2011 Mar 07
3
1.8.3 - IAX - echo - jitterbuffer
I'm using iaxagent on a Droid X to connect by IAX to 1.8.3 at the office. 1.8.3 has sip phones. The audio is fine on the Droid X side. On the office side, they hear an echo of _their_ speech, not mine. The office uses sip-providers generally without any echo problem. Where do I start to figure this out? How do I narrow it down? Can I figure out if it is an iaxagent problem? Could using
2020 Mar 25
5
Need help to fix bug in rsync
I appreciate the reply - it keeps me from wondering "is there something I should be concerned about?". We use a co-location facility where we pay for bandwidth utilization so it's still an issue. ________________________________ From: CentOS <centos-bounces at centos.org> on behalf of Pete Biggs <pete at biggs.org.uk> Sent: Wednesday, March 25, 2020 1:32 PM To: centos
2007 Sep 27
3
Aggregate factor names
Hi all, A suggestion derived from discussions amongst a number of R users in my research group: set the default column names produced by aggregate () equal to the names of the objects in the list passed to the 'by' object. ex. it is annoying to type with( my.data ,aggregate( my.dv ,list( one.iv = one.iv ,another.iv = another.iv ,yet.another.iv = yet.another.iv )