similar to: Restructuring data - unstack, reshape?

Displaying 20 results from an estimated 1000 matches similar to: "Restructuring data - unstack, reshape?"

2006 May 08
8
enforcing special behavior of child rows in HABTM
Hi, I have a scenario where a doctor can have one or more specialties. For each doctor, one and only one of her specialties can be designated as primary. So I have tables called doctors, specialties, and doctors_specialties, the last of which has a boolean is_primary column. The doctor model class specifies that: has_and_belongs_to_many :specialties I want to enforce, at the lowest possible
2011 Jul 19
1
Lattice plot problem outputting to jpeg
Hi.....I am relatively new to R but was quite pleased with myself at having generated a series of lattice plots as PDFs. I was very surprised when plotting these out as jpegs (or png or tiff) that the strip title information above each lattice plot vanished. The pdf was fine. Has anybody any ideas? I can't add an image as the information is sensitive. Many Thanks Steve Creamer Here is the
2012 Dec 18
1
Arel limit Where if fields are present
I trying to create a select using Arel but I''m passing three parameters, I want to include the parameters only if they are different to nil or blank. Here is my method: def self.advsearch(summary_description, specialties, place) User.joins(:experience,:summary,:information) .where(Information.arel_table[:business].eq(false))
2008 Aug 21
4
Very confused with class
Hi all, I am very confused with class. I am looking at some weather data which I want to use as explanatory variables in an lm. R has treated these variables as factors (i.e. with different levels), whereas I want them treated as discretely measured continuous variables. So I need to reassign the class of these variables, right? Indeed, doing class(southwest$pressure) (pressure being air
2009 Jul 24
1
Conditional sorting
Greetings! I am trying to figure out how to order a data frame by one variable conditioned on another. Here is an example of what I have: d <- data.frame(RUN = rep(1:3, each = 3), ID = 1:9, AUC = runif(9,1,100)) > d RUN ID AUC 1 1 70.2 1 2 86.5 1 3 20.1 2 4 74.3 2 5 53.6 2 6 67.6 3 7 99.9 3 8 47.3 3 9 41.3
2007 Aug 07
1
R2WinBUGS results not different with different runs
Hi All I dont know if anyone else has noticed the same thing, but with 2 subsequent runs of the same syntax, I am getting exactly the same results. I was expecting that results differ slighlty, say in the 4th or 5th decimal place. Is this a specialty with R2WinBUGS? Does it have something to do with the seed value? Isnt the seed value reset everytime I restart winbugs? Thanks Toby
2006 Jan 04
3
SIP/IAX softphones for use in call centre environments
I've been working my way through the softphones listed on voip-info over the last few weeks and I've not really found anything to fit the bill. Has anyone had more luck? The environment is a small call centre of 5 users. Operators often need to be able to transfer calls to other operators with different specialties, so the softphone needs to be easy to use and quick to transfer calls.
2009 Nov 15
1
Help with unstack() function
Hi Everyone, I am trying to understand the unstack() function but after struggling for two days, I have given up. More specifically, I am trying the exercises at the end of Chapter 1 of Data Analysis and Graphics Using R by Maindonald and Braun, 2nd ed. Exercise 18 (p. 41) asks to unstack the Rabbit data frame from the MASS package to get a certain data frame that is shown in the exercise.
2004 Jun 10
2
SAMBA installation
hi, just wanted to introduce myself. My company is currently running a very old version of Samba - 2.0.7. I have been upgrading our UNIX systems this past month and have reached Samba. I know, if this is anything like the past upgrades over the last few weeks, I will need some support. Nothing has installed successfully the first time around. I downloaded version 3.0.4 and will be
2009 Jan 27
1
Creating list or numeric vectors out of selected columns of row oriented data
I am just assuming this can be done, but I have not gotten close to making it happen. I have a data file with about 1 million rows with 1470 unique subjects. Each row represents a small set of observations made on a specific date for a single subject. I would like to transform the data so that I have an R object with a single entry for each subject and start date and vectors for the
2004 Mar 19
2
using "unstack" inside my function: that old scope problem again
I've been reading the R mail archives and I've found a lot of messages with this same kind of problem, but I can't understand the answers. Can one of you try to explain this to me? Here's my example. Given a regression model and a variable, I want to use unstack() on the vector of residuals and make some magic with the result. But unstack hates me. PCSE <- function
2010 Oct 18
1
questions on unstack()
Folks, I have the following dataframe: > x <- structure(list(name = c("EU B", "EU B", "EU B", "EU B", "EU B", "EU B", "AU A", "AU A", "AU A", "AU A", "AU A", "AU A"), date = c("2010-10-11", "2010-10-12", "2010-10-13",
2012 Feb 09
3
Rearanging Data
Hi, This is only a small portion of the Data i am working on I want to make a subset of this data set( Data Set=Claims) MemberID ProviderID Vendor PCP Year Specialty 1 42286978 8013252 172193 37796 Y1 Surgery 2 97903248 3316066 726296 5300 Y3 Internal 3 2759427 2997752 140343 91972 Y1 Internal 4 73570559
2004 Mar 16
1
rights or read only
NetWare 6 sp4 server to windows 2000 server using cwrsync 1.2.1 when the cwrsync service writes the files to the server it uses it's own username and permissions. Does anyone have any suggestions as to how I can get this to write the files so common users and delete and change stuff? would the perverse permissions work with windows? Thanks, Matt Vorwald Network Engineer Lumber
2013 Oct 23
3
Rails 4 and HABTM Checkboxes: Unpermitted parameters error
I have a simple Rails 4 project with two scaffolded models: Practice and Practitioner. I have set these both as habtm and am in the process of adding checkboxes to the Practitioner form so that I can check off the practices that this practitioner belongs to. In the practitioners_controller, I added practice_ids to the practitioner_params permit list, but I am still getting the error: Started
2014 Jul 30
3
Internal timing under load is critical ?
Hi I am evaluating some voice broadcasting solutions based on Asterisks for more than 1000 simultaneous calls. Connection to Asterisk all are based on SIP and SIP Trunks so no DAHDI hardware is required. According to some recommendations like http://osdial.org/howto/? "Internal timing is very critical with Asterisk when it is under load" and we must use DAHDI hardware or "USB Voice
2017 Oct 17
2
ggridges help
yes, thanks, and I was getting close to that. One thing I found is the manual says the height is the distance above the y-line, which should be, but doesn't have to be positive. In fact, the time series are estimates of a cycle, and has negative values, which unfortunately are not included in my sub-sample. And the negative values are not handled properly (the series disappears for
2017 Oct 17
0
ggridges help
The min_height = -0.25 is there to make it show cycle values down to -1/4. You may want to change it to -1 so it shows more of the cycle values. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Oct 17, 2017 at 1:26 PM, Roy Mendelssohn - NOAA Federal < roy.mendelssohn at noaa.gov> wrote: > yes, thanks, and I was getting close to that. One thing I found is the > manual says the
2010 Aug 22
6
CentOS or other Linux Internet Router/Gateway
Hi Everyone, I've got kids who are growing older and I want to build a Linux box to filter Internet access. I've got six computers on the Internet, plus the laptops -- most run Windows. I'm not sure if it's called a router or gateway or...? I don't mind doing the leg work, I just don't know where to start. I'm pretty sure I'm *not* looking for a web server (though
2009 Dec 29
4
subsetting by groups, with conditions
I have a data set similar to this: P1id Veg1 Veg2 AreaPoly2 P2ID 1 p p 1 1 1 p p 1.5 2 2 p p 2 3 2 p h 3.5 4 For each group of "Poly1id" records, I wish to output (subset) the record which has largest "AreaPoly2" value, but only if