similar to: editing a data.frame

Displaying 20 results from an estimated 200 matches similar to: "editing a data.frame"

2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame. For instance > ddTable <- data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry")) I want a dataset that is Id Name 1 Paul 2 Bob > unique(ddTable) Will give me all 4 rows, and > unique(ddTable$Id) Will give me c(1,2), but not accompanied by the name column.
2017 Jun 20
3
Help
Dear expert friends, I'm pretty young of this world and my question at your eyes can be petty easy. I'll need to change the name of the levels inside a column of my data-frame levels(ind.davis$Ageclass) <- c("adult", "Juvanile", "sub-adult") names(ind.davis$Ageclass) <- c("Adult", "Juvenile", "Sub-adult") that is what I
2017 Jun 20
0
Help
Leonardo-- R-help can be a very useful resource. Some suggestions to use it well: 1. use an informative subject line, not "help" 2. include a "minimal working example:" a *little* data, the code that, with those data, reproduces your problem, and the error message that resulted. As to your particular question, at this point I can only guess, but for starters it would
2011 Jun 28
1
plotting survival curves with model parameters
Hello. I am trying to write an R function to plot the survival function (and associated hazard and density) for a Siler competing hazards model. This model is similar to the Gompertz-Makeham, with the addition of a juvenile component that includes two parameters---one that describes the initial infant mortality rate, and a negative exponential that describes typical mortality decline over the
2009 May 16
1
typos
Hi few typos i've found ?.C Specifying 'ENCODING' overrrides any declared encodings (see 'link{Encoding}') \link{Encoding} -------------------- writing R extensions, pag 73 (pdf version), note 1, and we provided an emulation on Windows 2000): see ?dyn.oad ^ ^^ 1
2009 Jan 10
1
Hmisc-xtable label
Dear all: Does anybody know about label conflicts between xtable and Hmisc? I found a couple of e-mails similar to this problem but is not clear to me how to get around the label problem. The first table(longtable below) is generated with the latex function from Hmisc but for some reason when I try to hyperlink to it,it takes me to the top of the document. The second table created with the xtable
2008 Sep 06
2
Hopefully an easy error bar question
Hi im trying to add error bars to my barplots, there very basic, i have a few grapghs where the y variable is different but on all the X variable is Age (Adult and Juvenile) however this is split into two levels so i have males and females, so my graph basically has four bars on it. I know how to add eror bars for instance when there is only one level eg lookng at the diffrence between male and
2010 Sep 23
1
Merging two data sets
Greetings I need to merge two data sets. The first data set contains information on individual organisms roosting in clusters,e.g., cluster one has 5 individuals: 3 females, two males, and one juvenile and so on for hundreds of clusters. The second data set contains temperature data on each of the plots from the first data set. The problem: the second data set only has one data point per
2006 Sep 06
1
Help on estimated variance in lme4
Dear all, I get an error message when I run my model and I am not sure what to do about it. I try to determine what factors influence the survival of voles. I use a mixed-model because I have several voles per site (varying from 2 to 19 voles). Here is the model: ### fm5 <-lmer(data=cdrgsaou2, alive~factor(pacut)+factor(agecamp)+factor(sex)+ResCondCorp+(1|factor(cdrgsa ou2$ids)),
2006 Apr 24
2
sortable table rows?
I''ve been trying to make some table rows sortable using Scriptaculous. I''ve used: Sortable.create("secondlist", {tag:''tr'', treeTag:''table''}); and Sortable.create("secondlist", {tag:''tr''}); Neither of which works. Is it even possible to do this? Thanks, Daniel
2009 Mar 20
1
Is this sample size big enough to test for statistical significance?
Dear R community, Is this sample size large enough to study differences between two groups of the populations? Q1: do the body temperatures differ between the two groups of the overwintering turtles juveniles and adults? One group (adults) has 6 turtles Second group (juveniles) has 1 turtle. There are 3 replications, i.e. the experiment was repeated over the three years, but using
2010 Aug 13
2
JustCamIt
Hi! First of all I'm real begginer, so please be nice with me! And the main reason of my thread - I start introduce myself with Ubuntu, but as that new for me, I have some problems run on it some apps that easy could work on Windows... .. story is about JustCamIt [http://www.esensualnetworks.com/services.php] <-- there is V_2.0, but preferiable for me is older one V_1.2 So as in best
2012 Jan 28
1
XFS Developer Takes Shots At Btrfs, EXT4
Nice article about XFS improvements: http://tinyurl.com/7pvr9ju
2009 Jan 22
1
convergence problem gamm / lme
Hope one of you could help with the following question/problem: We would like to explain the spatial distribution of juvenile fish. We have 2135 records, from 75 vessels (code_tripnr) and 7 to 39 observations for each vessel, hence the random effect for code_tripnr. The offset (‘offsetter’) accounts for the haul duration and sub sampling factor. There are no extreme outliers in lat/lon. The model
2006 Feb 02
0
Mongrel HTTP Library 0.2.1 (Fancy URI Matching)
And now it''s time for yet another Mongrel release. Mongrel is a small fast HTTP library written in (partly) Ruby. It is intended to be used by web app framework authors to make their applications fast and deployable without resorting to SCGI/FastCGI trickery. Mongrel is tested to work on Linux and Mac OS X (with more reports welcome). You''ll need a full compiler to
2009 Apr 05
4
predicting values into the future
Hi: I have usually used the GROWTH() excel function to do this but now want to see if I can do this with R. I want to predict values into the future, possibly with the predict.arima Function. I have the following weekly fish weight averages: weight <- c("2.1","2.4","2.8","3.6","4.1","5.2","6.3") week <-
2012 Mar 28
2
Data extraction
Dear ReXperts, I have the below text file output. I need to extract the T, QC, QO, QO-QC and WT columns for the data between T = 10 and T=150. Any ideas? Thanks in advance. ======================================================================================== 1 D C ---CAT-- T THETA QC QO QO-QC QC/QO WT FSD 8 1 0 1.0000E+01
2010 Dec 30
0
Need Help Getting Windows XP To Use Samba Properly[Closed]
Unfortunately we're not able to install more software of radically change any configurations. We also do not use LDAP (just a workgroup, hosts file, static IPs and Samba). But those are good ideas, I'll keep them in mind just in case. Major thanks. :-) Bob -----Original Message----- From: tms3 at tms3.com [mailto:tms3 at tms3.com] Sent: Thursday, December 30, 2010 12:45 PM To:
2005 Jul 04
5
VOIP Providers Problems
you guys are so friggin funny.. all i see bout problems on most providers here are users who never read a line of the handbook i could prolly solve all these eyes closed with the asterisk handbook on my side as a friend. wake up.. i work for a hosting provider and we get lots of users assuming they have it all right and us is the problem. and in fact 99% of the time they are the ones who
2006 Oct 27
3
How to best divide table by table
Hi all, how can I divide two tables of the same dimension so that all names are preserved, ie do not become NA? I have "tab1" and "tab2", each having names in the first column. I want "tab3" with the same names and values "tab1/tab2". Thanks, Serguei