similar to: Assign the number to each group of multiple rows

Displaying 20 results from an estimated 4000 matches similar to: "Assign the number to each group of multiple rows"

2010 Mar 11
2
as.integer and indexes error
Hello All, I would like to report the following bug or maybe you can explain if I am wrong. I am sampling from two different populations with weights. The two populations have the same age groups and I want to distinguish where I am sampling from. That is why I am using a matrix such as: matrix age.group Male Females Weight.Males Weight.Females 1 1.1
2012 Jun 08
1
noob requesting help
I'm fairly new to R and still learning how to use it. I could really use some help with the following problem. I have a huge .csv file containing thousands of measurements on 34 different birds. Measurements include longitude, latitude, altitude, speed, time, etc. All birds have a different number (ranging from 121 to 542). All measurements have a tripID (1 for the first trip of every bird, 2
2006 Sep 12
1
Build 2.0.4, usb.h missing.
Hi! I've got a Mandrake 2006.0 machine and a APC Back-UPS Pro 500/1000/1500 (from lsusb). The Mandrake package version of nut is 2.0.1 and hidups actually detects the UPS, however I get loads of these: Sep 12 18:26:11 vader hidups[7658]: Ignoring x86 page event 0xff860080 (0) Sep 12 18:26:11 vader hidups[7658]: Unhandled event: 0x840058 (6) Sep 12 18:26:11 vader hidups[7658]: Unhandled
2012 Jul 13
1
R combining many vectors of predictable name into one date frame
G'day R (power) users, I have a many vectors, called: ib1 ib2 ib3 ... ib100 and I would like them in one data frame (df) such that: > df ib1 ib2 ib3 ib4 ..... ib100 x x x x x x x x x x x x x x x I have attempted: hold.list <- list(objects(pattern="ib")) df <- data.frame(hold.list) but that
2006 May 10
3
Unique?
Hello, I have sample data set that looks like: YEAR MONTH DAY CONTINUE SPL TIMEFISH TIMEUNIT AREA COUNTY DEPTH DEPUNIT GEAR TRIPID CONVUNIT 1992 1 26 1 SP0073928 8 H 7 25 4 NA 1000000 02163399054 161 1992 1 26 1 SP0073928 8 H 7 25 4 NA 1000000 02163399054 8 1992 1 26 2 SP0004228 8 H 7 25 4 NA 1000000 02163399054 161 1992 1 26 2 SP0004228 8 H 7 25 4 NA 1000000 02163399054 8 1992
2012 Apr 03
2
Grouping and/or splitting
I have a dataframe imported from csv file below: Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 2,1,1,96 2,1,2,4 2,1,3,2 2,2,1,58 There are three groups identified based on the combination of first and second columns. How do I split this data frame? I tried aa <- split(inpfil, inpfil[,1:2]) but it has problems. Output desired is aa[1] Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 aa[2]
2006 May 03
4
Aggregate?
Hello, I have a data set with a grouping variable (TRIPID) and several other variables. TRIPID is repeated in some areas and I would like to use a function like aggregate to sum the variable UNITS according to TRIPID. However I would also like to retain the other variables as they are in the data set with the new summed TRIPID. So what I have is something like this: YEAR MONTH DAY
2006 May 03
4
Aggregate?
Hello, I have a data set with a grouping variable (TRIPID) and several other variables. TRIPID is repeated in some areas and I would like to use a function like aggregate to sum the variable UNITS according to TRIPID. However I would also like to retain the other variables as they are in the data set with the new summed TRIPID. So what I have is something like this: YEAR MONTH DAY
2009 Jul 09
2
Dovecot fails to deliver big messages
Description of problem: Hello, I am having problems with Dovecot not delivering 'big' emails. Small email with 1-2 kb text delivered fine. If the message about 200kb long or more it freezes. I am also getting "copy: i_stream_read() failed: Permission denied" erros in Dovecot log files. I have tried switching off selinux and settings 777 permissions to my mail_location - it both
2009 Aug 03
1
MSM package and qmatrix
Hi R-helpers, I am having a problem understanding how to construct the qmatrix, i have read the help menu for msm but I am still a bit lost. Below is an example of one of my transition matrices: statetable.msm(BEH, ID, data = A1) to from 1 2 3 4 5 23 200 201 203 999 1 86 11 2 20 1 9 3 11 1 22 2 18 4 4 4 0 1 1 1 0 1 3 5 2 0 5 0 0 2 0 0 3
2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers, How are you structuring your specs? I am working on a new project and tried this: ./lib ./blah ./spec ./blah ./stories But it breaks autotest, so I moved stories parallel to lib and spec. Also what about suffixes? I have adopted "xyz_story_spec.rb", and "xyz.story" for the time being, with the line runner =
2008 Oct 30
1
Trying to "expand" some data - Newbie needs help
I want to calculate "expansion factors" for elements in my dataframe based on a 2-d cross classification. Since I'll have "missing values" (many combinations will have no record) I'll need a second "expansion factor" for each "row". I've included my "work to date" below, but I'm not very close to getting this right. My
2010 Jun 01
2
storing output data from a loop that has varying row numbers
Hi All, I am trying to run a loop that will have varying numbers of rows with each output. Previously I have had the same number of rows so I would use (and I appreciate that this will no doubt achieve some gasps as being thoroughly inefficient!): xdfrow<-(0) xdfrow1<-(1:32) xdfrow2<-(33:64) xdfrow3<-(65:96) xdfrow4<-(97:128) xdfrow5<-(129:160) xdfrow6<-(161:192)
2012 Apr 03
1
Compare by row and insert previous row value (Or non Time Series Lag)
I have the following sample dataset (CSV input here:http://goo.gl/YR8LP. CSV output here: http://goo.gl/EFCC8) which I want to transform as follows. For each person in a household I want to create two new variables OrigTAZ and DestTAZ. It should take the value in TripendTAZ and put that in DestTAZ. For OrigTAZ it should put value of TripendTAZ from the previous row. For the first trip of every
2006 May 16
3
subset
Hello everyone, I have a large dataset (x) with some rows that have duplicate variables that I would like to remove. I find which rows are the duplicates with X1<-which(duplicated(x)). That gives me the rows with duplicated variables. Now, how can I remove just those rose from the original data frame. I think I can create a new data frame without the duplicates using subset. I have tried:
2011 May 16
1
pam() clustering for large data sets
Hello everyone, I need to do k-medoids clustering for data which consists of 50,000 observations. I have computed distances between the observations separately and tried to use those with pam(). I got the "cannot allocate vector of length" error and I realize this job is too memory intensive. I am at a bit of a loss on what to do at this point. I can't use clara(), because I
2007 Mar 18
3
"ö" causes find_by_contents not to return
I''ve installed ferret 0.10.9 together with the latest acts_as_ferret using Windows XP and indexed a location database (geonames.org) with Location.rebuild_index. The data is in utf-8. Now calling Location.find_by_contents "?" does not return a result, causes a lot of CPU load, and finally exits with an error "index.rb:702: in ''parse'': failed to allocate
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
Hi there, this code works only fine , if i dont embedding the prototype.js in my document: <script type="text/javascript"> var myCheckBox2 = new Array(); myCheckBox2[''Ort''] = new Array("hamburg","berlin","hannover"); myCheckBox2[''Art''] = new Array("programmierung","support");
2006 Apr 16
0
Sortable
I have 3 sortables, namely lista, listb and listc. Lista being a static list of items and will be drag n drop to listb and listc. Everytime I drag from lista to either listb or listc, the items in lista will be removed. Is that normal? If so, can anyone advice how can I maintain the items in lista so that I can have duplicate items in listb and listc. I am using rails for the development.
2016 Jun 28
0
Air Media
tisdag 28 juni 2016 kl. 13:40:30 CEST skrev Ove Airmedia: > Hej Kjell, Hej Ove > Jag hade tappat bort dig bland dokumenten. > Vill du fortfarande ha produkterna du best?llt? > Jo det vill jag. De beh?vs till min Multiplex Heron. Har pengarna kommit in p? ditt konto? Jag var inte s?ker s? jag kollade med min bank, s? de skulle se om det kommit r?tt. N?r kommer den nya s?ndaren ut