similar to: RoR data models ( extreme newbie question)

Displaying 20 results from an estimated 400 matches similar to: "RoR data models ( extreme newbie question)"

2011 Jun 13
1
maintaining row connections during aggregate
Dear All, I have several sets of data such as this: year jday avg_m3s 1 1960 1 4.262307 2 1960 2 4.242308 3 1960 3 4.216923 4 1960 4 4.185385 5 1960 5 4.151538 6 1960 6 4.133846 ... There is a value for each day of multiple years. In this particular data set it goes up to 1974. I am am looking to obtain the minimum and maximum values for each year, but also know on which
2011 Sep 29
1
julian day form POSIXt object
hello all, this is my reproducible example data frame test<-structure(list(date = structure(c(1262300400, 1262304000, 1262304000, 1262307600, 1262307600, 1262311200, 1262311200, 1262314800, 1262314800, 1262318400, 1262318400, 1262322000, 1262322000, 1262325600, 1262325600, 1262329200, 1262329200, 1262332800, 1262332800, 1262336400, 1262336400, 1262340000, 1262340000, 1262343600,
2003 Jul 14
2
problem with coding for 'optim' in R
Hi, there I am a graduate student new to coding in S who is hitting a bit of a wall at present using an "optim" function. I am running into some troubles, and was hoping someone might be able to recognize where I am going wrong. As background: I have constructed a loop that carries out a 365-day calculation for a mass-balance model. Basically, the model depends on 2 variables (p,
2003 Jul 15
7
Excel can do what R can't?????
Hi there I thought this would be of particular interest to people using 'optim' functions and perhaps people involved with R development. I've been beaten down by R trying to get it to perform an optimization on a mass-balance model. I've written the same program in excel, and using the 'solver' function, it comes up with an answer for my variables (p, ACT, which
2006 Mar 10
3
Searching database using foriegn keys
I''ve read a lot about the ORM magic of Active Record which allows you to address a foriegn key object directly... e.g. I have a books and people table where books has a column called person_id If I get myself a Book object called mybook I get to the person object associated with this book by saying book.person which is awesome and I love it. My question, how can I say "Go
2005 Jun 28
2
boxplot by factor (Package base version 2.1.1) ( PR#7976)
The issue is not with boxplot, but with split. boxplot.formula() calls boxplot(split(split(mf[[response]], mf[-response]), ...), but look at what split() returns when there are empty levels in the factor: > f <- factor(gl(3, 6), levels=1:5) > y <- rnorm(f) > split(y, f) $"1" [1] 0.4832124 1.1924811 0.3657797 1.7400198 0.5577356 0.9889520 $"2" [1] -1.1296642
2013 Sep 21
1
Translating recoding syntax from SPSS to R
Colleagues, I am in the process of learning R. I've been able to import my dataset (from Stata) and do some simple coding. I have now come to coding situation that requires some assistance. This is some code in SPSS that I would like to be able to execute in R: if (race eq 1 and usborn=0) confused=1 . if (race eq 2 and usborn=0) confused=1 . if (race eq 1 and usborn=1) confused=0 . if (race
2005 Dec 28
2
Importing Genstat files into R
Does anyone know if there is a package or other method of reading Genstat files directly into R. Genstat isn't listed in the foreign package. Many thanks, Graham [[alternative HTML version deleted]]
2010 Jan 16
2
La.svd of a symmetric matrix
Dear R list users, the singluar value decomposition of a symmetric matrix M is UDV^(T), where U = V. La.svd(M) gives as output three elements: the diagonal of D and the two orthogonal matrices u and vt (which is already the transpose of v). I noticed that the transpose of vt is not exactly u. Why is that? thank you for your attention and your help Stefano AVVISO IMPORTANTE: Questo messaggio di
2004 Dec 29
5
PRI Woes continue
System is built on a SuperMicro motherboard with Serverworks chipset, IRQ is not shared. Have a dialplan that worked for 8 months without errors, tried reverting to older release then upgraded to 1.0.3 stable release, currently running on fedora core 1 kernel 2.4.22-nptl.2199 (have tried plain jayne), telco says "it's not us", HDLC abort seems to occur when when a Zap channel hangs
2017 Oct 25
1
[OT] Bash help
Leroy Tennison wrote: > No kidding, but in that "other OS" the answer to the question "how can I > create that report" is usually "You can't unless you spend money for a > third-party application". > "Other", singluar? Did you mean WinDoze, or on an IBM mainframe, or...? mark "been around the block" > ----- Original
2009 Apr 24
4
Overriding Model Name
If I understand things correctly, by default, Rails expects both the ActiveRecord class name and the model name (i.e., the name of the file that contains the definition of the ActiveRecord class) to be the singluar of the table name. How can I override this default behavior with respect to the model name? That is, I would like to have the file name of the file that contains the definition of the
2007 Jan 08
3
Relating Tables
I have 2 mysql tables, Product and Color: Color ID ColorName 1 Red 2 Green 3 Yellow 4 Blue Products ID Color1 Color2 Color3 ProductName 1 ? ? ? Orco 2 ? ? ? Skeletor 3 ? ? ? He-Man I need to display the ColorName to
2011 Dec 01
2
R, PostgresSQL and poor performance
Hi List Apologies if this isn''t the correct place for this query (I''ve tried a search of the mail archives but not had much joy). I''m running R (2.14.0) on a Mac (OSX v 10.5.8, 2.66GHz, 4GB memory) and am having a few performance issues with reading data in from a Postres database (using RPostgreSQL). My query / code are as below # -----------------------------
2002 Jun 11
2
Perl vs. R
Dear All, I am being told that R can process text files and strings as well as Perl (and is certainly more elegant). Being an R neophyte I need a little boost to get started. I have a little benchmark program in Perl that reads a delimited file, creates an inverted table and spits the file out again in key sorted order. It's just a few lines of Perl (see below). Can someone write the
2006 Jun 13
1
derirect web page to file
Hi all, quick question to all of you ruby on rails experts. I need to redirect the output of a url to an actual physical file. In other words, I need to have what I see in the web browser to intead be written into a file. Any ideas? Thank you. Darkwax -- Posted via http://www.ruby-forum.com/.
2006 May 17
4
NOOB: Representing linked objects in one form
Given two models: User :name :email :address_id # foreign key Address :line_1 :line_2 :city etc. I want to have a form allowing a user to register, in which she''d enter an address as well, but how do I go about combining both objects into the one form? I''m new to this and following along with the Agile Rails book from the Pragmatic Programmers, but it
2007 Aug 22
1
TDM400P Not hanging up fast enough
Hi List, I have a client who has a TDM400P with 4 FXO. He has a problem them when some one calls, then hangs up it takes a good 10-15 seconds or more of the card to realize that the line was hung up on. The phones keep reigning After a bit it hangs up on the line. Also there has been some hanging. (After a user on the PBX side hangs up the card does not "release the line"). I am using
2012 Jun 25
1
read.spss function
Hi dear all, I am trying to import a dataset from SPSS into R (R x64 2.15.0). I used both   read.spss("D:/Untitled2.sav", use.value.labels = TRUE, to.data.frame = TRUE, max.value.labels = Inf, trim.factor.names = FALSE,trim_values = TRUE, reencode = NA, use.missings = to.data.frame) & read.spss("D:\\Untitled2.sav", to.data.frame = TRUE, stringsAsFactors = FALSE)   but the
2017 Oct 25
2
[OT] Bash help
Warren Young wrote: > On Oct 25, 2017, at 11:00 AM, Leroy Tennison <leroy at datavoiceint.com> > wrote: >> >> Although "not my question", thanks, I learned a lot about array >> processing from your example. > > Yeah, it?s amazing how many obscure corners of the Bash language must be > tapped to solve such a simple problem. I count 7 features in