similar to: reshaping a dataset

Displaying 20 results from an estimated 1000 matches similar to: "reshaping a dataset"

2006 Sep 18
2
merge gives me too many rows
Hi, I am using merge to add some variables to an existing dataframe. I use the option "all.x=F" so that my final dataframe will only have as many rows as the first file I name in the call to merge. With a large dataframe using a lot of "by" variables, the number of rows of the merged dataframe increases from 177325 to 179690: >dim(test) [1] 177325 9 >
2005 Jan 19
2
recoding large number of categories (select in SAS)
Hi, I have data on stomach contents. Possible prey species are in the hundreds, so a list of prey codes has been in used in many labs doing this kind of work. When comes time to do analyses on these data one often wants to regroup prey in broader categories, especially for rare prey. In SAS you can nest a large number of "if-else", or do this more cleanly with "select"
2010 Feb 15
1
GAM for non-integer proportions
Dear list, I´m using the mgcv package to model the proportion by weight of certain prey on the stomach content of a predator. This proportion is the ratio of two weights (prey weight over stomach weight), and ranges between 0 and 1. The variance is low when proportion is close to 0 and 1, and higher at intermediate values. It seems that the best way to go is to model this using the
2011 Mar 10
2
Not sure how to handle hazard in my survival model
Hi R experts :) I'm trying to carry out a survival model on my data, but I am unsure of whether it's appropriate or if I should do something specific in regards to hazard. My data is time to death by predator where I have 8 prey and one predator in the setting. This means that two prey can't possibly die at the same time and I can't quite get my head around how to include this in
2007 Feb 25
1
nested design in lme, need help with specifying model
Hi, I wonder if anyone can help me with specifying a right model for my analysis. I am a beginner to lme methods and though have spent already many hours studying from various books an on-line helps, I was unfortunately not able to find a solution to my problem on my own. Data structure: I studied escape behavior of three species of a prey to a predator. The prey specimens (many) were in a
2010 Dec 11
2
Predator Prey Models
Dear R-users, I am currently modifying a previously developed predator prey model and was curious if there was a way to add in a disturbance to the model (let's say at time t=100). The disturbance can be the introduction of 40 prey (N=40) and 10 predators (Pred = 10). I would like to see my model go from a state of equilibrium (up to t = 99), show this disturbance (at t = 100) and then
2007 Dec 10
1
Multiple Reponse CART Analysis
Dear R friends- I'm attempting to generate a regression tree with one gradient predictor and multiple responses, trying to test if change in size (turtle.data$Clength) acts as a single predictor of ten multiple diet taxa abundances (prey.data) Neither rpart or mvpart seem to allow me to do multiple responses. (Or if they can, I'm not using the functions properly.) > library(rpart)
2008 May 26
4
Prey and OpenGL
I have installed Prey onto my pc running PCLinuxOS following the instructions in http://frankscorner.org/index.php?p=prey or http://appdb.winehq.org/objectManager.php?sClass=application&iId=3465 and tried running it. I then found I needed the nocd patch, which I downloaded and applied. I then tried cd to the app folder, then wine prey.exe with the following result: Prey 1.0.103 win-x86 Jun 10
2006 May 01
1
xyplot: trouble changing graphics settings
Hi I am struggling with the correct code syntax to generate xyplots that are different from the default graphics option. This is simplified version of my data: site size dnaconc prey A 44 22.6 1 A 47 18.2 1 B 38 25.6 0 B 47 20.5 1 C 45 30.5 0 C 32 18.5 0 D 45 15.0 1 D 22 20.1 0 So I am using xyplot(dnaconc~size|site,data=bug,groups=prey) to generate 4 panels (one for each site). My
2010 Apr 28
1
NLS "Singular Gradient" Error
Hello, I am trying to model a type II functional response of number of prey eaten (Ne) against number supplied (No) with a non-linear least squares regression (nls). I am using a modification of Holling's (1959) disc equation to account for non-replacement of prey; Ne=No{1-exp[a(bNe-T)]} where a is the attack rate, b is the handling time, and T is the experimental period. My script is as
2000 Feb 21
1
OpenSSH doesn't compile under Solaris 2.3 Sparc
Hi, We are trying to get OpenSSH-1.2.2 stable release to compile under Solaris 2.3 Sparc. It worked perfect for Solaris 2.5, Solaris 2.5.1, Solaris 7 (All on Sparc) and Linux 2.2.13 Intel x86 OpenSSL installs fine without problem, zlib is installed fine without problems and egd.pl installs fine without problems. These are all the current releases, I can get the version numbers if you need
2008 May 29
1
In fact this is a Stats question, but... "The return."
*Thanks* all those who took the time to help me (even if the "question" was not related to - the use of - R). Now I think I can soundly make my point w/ the referee (can I use your replies? If so I intend to properly cite its use?!?). Regards, Eduardo Esteves ps - Sorry for not explaining the "biological details" of my posting: RNA/DNA is the ratio of RNA content to
2016 Apr 26
0
vectors of equations in ode / desolve
Hello, I have a syntactic problem with ode. How do I specify vectors of equations in ordinary differential equation systems. (i.e. in my case I want to simulate an a priory undefined number of species that have different parameters but the same behaviour) I demonstrate this using the Lotka Volterra example. The code below does not work and I have not a good idea how to specify this right. ##
2008 Dec 10
1
subset point data set by distance ranges
Greetings I'm using R 2.8 with recent (last month) versions of the packages I need to use at present. I'm interested in examining hierarchical spatio-temporal patterns in a data set. The data consist of 94 points (X, Y, UTM coordinates) at which catch rates for a fish were recorded and there are also estimates of prey available for these fish at the same locations.
2011 Feb 03
1
boostrap an nls regression
Hello there I have the following model based on the hollings disc equation for the type II functional response for 2 data sets: nls(eaten~(a*suppl)/(1+a*h*suppl) where eaten is the number of prey eaten by a predator and suppl is the number of prey initially supplied to the same predator. I have parameter estimates of 'a' and 'h' for the two populations studied and would like
2014 Apr 15
3
[LLVMdev] local lambdas: request for coding standard clarification/judgement call
Do local lambdas get named like variables or like functions? E.g. void foo() { auto helper = [](...){...}; // or auto Helper = [](...){...}; } My gut is that it should be lowercase (named like a function) since I got a weird feeling in my stomach seeing an upper-case name being called like a function in new code. -- Sean Silva -------------- next part -------------- An HTML attachment
2017 Jun 09
0
Urgent :) Procedure for replacing Gluster Node on 3.8.12
On 9 June 2017 at 17:12, <lemonnierk at ulrar.net> wrote: > Heh, on that, did you think to take a look at the Media_Wearout indicator ? > I recently learned that existed, and it explained A LOT. > Yah, that has been useful in the past for journal/cache ssd's that get a lot of writes. However all the stats on this boot SSD were ok, it just gave up the ghost. Internal controller
2012 May 11
2
[LLVMdev] Request for Help: Teach ARM target to auto-detect cpu / subtarget features
Hi all, I've just filed PR12794: Add ARM cpu / subtarget features auto-detection. And I would very much appreciate the community's help to implement this. What motivated this? Well this: http://www.phoronix.com/scan.php?page=news_item&px=MTA5OTM I believe one of the reason the benchmark numbers are totally bogus is that the compilation are done on ARM hosts. Given the benchmarks are
2009 Jul 15
3
Axes origins and labeling
I have re-labeled tick marks on the x axis. The problem is that by using axes=FALSE, the axes disappears and when they are called back using axis(side=1)..etc. the axis on sides 1 and 2 do not meet at the bottom left corner of the graph. I would also like to have the 3rd and 4th axes in there as well, all meeting in their respective corners. par(mfrow=c(1,2)) gut<-c("Full",
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
Dear all, I did post this more or less identical mail in a follow up to another question I posted, but under another heading. I try again, but now under the correct header. upon running this code (from the Hmisc library-latex function) I believe the call to summary.formula is allright and produces wonderful tables, but the latex command results in a correct formatted table but where all the