Displaying 20 results from an estimated 100 matches similar to: "Creating unique code"
2020 Oct 30
3
Error: variable not found
Hello
I have a question. I made an r-script and did a few commands needed to make some new variables. They all work out well, and when I run the commands, the new variables appear in the dataset. I can also work with these new variables to make other new variables from them. Also, when I use summary(dataset), those new variables appear in the summary of the dataset.
But, when I do summary(new
2020 Oct 29
0
Creating unique code
Hi Hannah,
Yes, that does give me more insight. The polygyny only doesn't matter, for
even if there was polyandry it could be coded in the same way. If I
understand this correctly you have one variable (SPRULE) that must contain
information about the household of the individual and the identities of his
(or her) relationship partner(s). The household number can accommodate up
to three
2020 Oct 30
0
Error: variable not found
Hi Hannah,
Using the same code I sent before, you can append the partner codes to the
household code. I apologize, but I don't know how to use the
dplyr/tidyr/... stuff so this is written in straight R code using logic
statements.
ipumsi_00008_dta<-
read.table(
text="country year sample serial hhwt pernum perwt resident sploc sprule
204 2013 204201301 4000 10 1 10 1 5 2
204 2013
2006 Jan 13
5
Form field naming semantics question
Hi,
I have a question today regarding how the various form elements in
_form.rhtml are named.
I understand that for a database table "persons" with a column headed by
"name", then in _form.rhtml it will probably be like:
<p><label for="person_name">Name><br/>
<%= text_field ''person'', ''name''
2004 Sep 06
2
spouse-friendly spa-3000 pstn interface
This post is simply documenting a spouse-friendly way of using the
spa-3000 as both a fxs and fxo port for basic soho environments in
the US, allowing asterisk to participate as needed/wanted.
All home phones are connected _only_ to the spa-3000 fxs port.
The incoming home pstn line is connected _only_ to the spa-3000
fxo port.
Defined Line 1 (fxs) to register with asterisk via sip (extn
2005 Jul 14
1
Single-table inheritance and eager loading
I have a people table with four types of people: clients, spouses,
children, and others all setup using single-table inheritance with a
foreign key back to a household record.
A Household has_one client and spouse, and has_many children and
others. I want to use a single "Household.find(@session
[:household_id], :include => [:client, :spouse, :children, :others])"
2004 Aug 11
3
X100P outbound only (Don't answer)
I tried implementing my * and it didn't pass the spouse factor at this
time. I wanted to hook it up for outbound only at this point to get a
better handle on the dial plans and the echo problem.
I thought this might have been done before as a natural part of testing
- but maybe not.
In wcfxo.c I found this:
if (!wc->offhook && !wc->ringdebounce) {
if
2006 Oct 20
2
Dataset on Baltimore home energy costs
I received a private request for my complete dataset from my previous
questions. In gratitude to the developers of R, and especially to the
helpful members of r-help, I'm happy to attach it. Anyone is free to use
this dataset in any manner they wish, including published books.
Attribution is not required, or even desired.
Explanatory notes on dataset:
This data is collected from monthly
2006 Aug 16
11
just don''t ''get'' "has one" and "belongs to one"
Well, I understand what they do and how, I just don''t get why!
It seems to me that any time you would have this relationship between
two tables...they should be one table! Agile Rails book gives what
seems to me to be a lame example for this. They use the example of an
"invoice" and an "order". An invoice belongs to an order and an order
has one invoice. Seems
2010 Sep 22
2
efficient list indexing
Hello everyone,
I need some help with lists inside lists (a good way to emulate a struct)\
Assume that there is a small list called fred:
fred <- list(happy = 1:10, name = "squash")
and a big list called bigfred that includes fred list 5 times
bigfred <- rep(fred,5)
Is it possible somehow to index all these sublists(fred) inside bigfred with a
more direct way like this:
2009 Oct 21
3
Low End NAS hardware.
Hey,
The recent discussion on NAS/SAN and the Thecus N8800 got me to thinking.
Bit of background. I have an old Dual Athlon MP2800+ that I'm using
for a home web/file server. It runs fine but between the noise of the
various fans and it's location in the living room, I've been asked by
my spouse to find a replacement for it that's smaller & quieter.
Looking at the Thecus, and
2006 Oct 29
1
Multiple dial macros at the same time
I am setting up an after-hours on-call system. Someone calls in and
requests service, and while they listen to music on hold, we dial out to
several people's cell phones and home phones. We don't know if they will
be answered by the employee, or by voicemail or a
spouse/relative/child/pet. So we play a message that says "press 1 to
accept the call" and ask employees to train
2019 Apr 15
2
cutting corners (4.10.2 on el7.6)
Hi All,
I'm not well versed in the samba code base so I'm asking here.. :)
I only wanted to run a small AD/DC for my SOHO (1 spouse, 3 kids, 1 dog & 1 cat).
I've managed to build 4.10.2 on rhel7.6 with gnutls-3.3.29 and python-2.7.
(this required an updated cmocka, which in turn required an updated cmake)
but...
building without testsuite and without clustering (ctdb) allows
2011 Oct 04
2
adding a dummy variable...
Hi all,
I have a dataset of individuals where the variable ID corresponds to the
identification of the household where the individual lives. rel.head stands
for the relationship with the household head. so rel.head=1 is the household
head, rel.head=2 is the spouse, rel.head=3 is the children.
Here is an example to see how it looks like:
df<-data.frame(ID=c("17100",
2009 Nov 28
4
Fedora 11 i386 Evolution address book --> CentOS 5.4 x86_64
Finally moved my home desktop from Fedora to CentOS. My spouse was
unhappy with me upgrading from F9-->F10-->f11 etc and wanted something
more stable.
I built a second machine which is now running in parallel to the old F11
desktop. I moved my data (mail and files) from the F11 box to the
CentOS 5.4 box. I used tar to move everything. Mail and files
transferred A-OK...but the Evolution
2004 Dec 01
1
SPA-3000 and distinctive ring
I'm looking to give the SPA-3000 a whirl as I'm having too much
difficulty with the irq sharing thing inside the box.
I'm reading the book but without having one in-hand to play with it
appears a little obtuse at this time. Before I drop down my money can
someone with some hands-on with one of these confirm if the SPA-3000
can:
a) detect inbound distinctive ring (this looks to me like
2008 Nov 07
2
Vectorizing sample()
I am simulating sickness among a group of families. Part of the task is
to randomly draw who in the family will be sick, randomly drawing from
family ID's where Dad =1, Mom = 2, Kid1 = 3, Kid2 = 4., etc. My census of
Dads is of the form shown below.
Dad_ID Spouse (Y=1;N=0) #Kids #People_Becoming_Sick
1 1 0 1
2
2001 Mar 01
2
Individual rename of list items
I am confused by the logic of renaming:
# Rename individual list items?
Empl<-list(employee="Anna",spouse="Fred")
names(Empl)<-c("empl","spo")
names(Empl)
#[1] "empl" "spo"
# worked like a charm... but
names(Empl[1])<-"newempl"
# no error message, yet ....
names(Empl)
#[1] "empl" "spo"
#
2007 Oct 11
0
display problem with to_csv
Hi all,
I need to export the document as csv file, i have exported
successfully, but the problem is not displayed as per my format, in csv
file the format is suffuled, i want the orderwise as how i have
mentioned in my query, please help me to come out in the order wise.
My coding is:
@report_data=EdiaUserContact.find_by_sql(
"SELECT '''' as ''Title'',
2004 Dec 23
2
update killed my x
X server, that is (as opposed to my ex-spouse...) Anyway, I was
loving life with my rebuilt 2.4.21-9.0.1.EL.c0custom041130a kernel,
and then ran "yum update", which gave me a grub line for
2.4.21-20.0.1EL, but the 21-20 not only won't work with the old X
settings, I can't get it to set up X at all. I tried running "yum
update" from a console on this kernel, but yum