similar to: modify and append new rows in a dataframe

Displaying 20 results from an estimated 800 matches similar to: "modify and append new rows in a dataframe"

2013 Jun 10
1
modify and append new rows to a data.frame using ddply
Hi, I have a data.frame that contains a variable act which records the duration (in seconds) of two states (wet-dry) for several individuals (identified by Ring) over a period of time. Since I want to work with daytime (i.e. from sunrise till sunset) and night time (i.e. from sunset till next sunrise), I have to split act from time[i] till sunset and from sunset until time[i+1], and from time[k]
2012 Jul 15
4
Imposing more than one condition to if
Hi,   I have a dataset which contains several time records for a number of days, plus a variable (light) that allows to determine night time (lihgt= 0) and daytime (light> 0). I need to obtain get dusk time and dawn time for each day and place them in two columns. This is the starting point (d): day time light 1     1       20 1     12     10 1     11     6 1     9       0 1     6       0
2012 May 05
2
creating a new column assigning values of other columns
Hello, ? I have to create a new column from the values of other columns of a data frame. The new?column (y$n) is created imposing a condition (using a third variable y$h) that assigns the values of two time variables (y$b and y$timepos). Here's the piece of code to get there (using the attached files): ? xact <- read.table("act.lig", sep = ',',
2012 Apr 30
1
Subtract days to dates in POSIXct format
Hello, I'm having problems working with date values in POSIXct format. Here is what I got (eg.lig attached): x <- read.table("eg.txt", sep = ',', col.names=c("ok","time","secs","lig")) # it gives time as factor z <- cbind(x,colsplit(x$time, split="\\s", names=c("date", "clock")))
2010 Apr 23
3
Event History Data Recoding
Dear R list, I have an event history data set that is structured like this: Legislative act Discussion Agreement Time Event Act1 2006-05-30 2006-06-19 20 1 Act2 2004-03-01 2004-06-14 105 1 . . . I have information on the meetings in the legislature between adoption periods in a separate variable (the
2013 Mar 29
1
Dataframe manipulation
Hi Adam, I hope this is what you wanted: dat1<- read.csv("example.csv",sep="\t",stringsAsFactors=FALSE) ?str(dat1) #'data.frame':??? 102 obs. of? 5 variables: # $ species? : chr? "B. barbastrellus" "E. nilssonii" "H. savii" "M. alcathoe" ... # $ period?? : chr? "dusk" "dusk" "dusk"
2012 Nov 22
1
Partial dependence plot in randomForest package (all flat responses)
Hi, I'm trying to make a partial plot with package randomForest in R. After I perform my random forest object I type partialPlot(data.rforest, pred.data=act2, x.var=centroid, "C") where data.rforest is my randomforest object, act2 is the original dataset, centroid is one of the predictor and C is one of the classes in my response variable. Whatever predictor or response class I
2008 Jan 25
1
daytime service on port 13
Hi all, One of the centos 5.1 servers was scanned by a customer and he suggests turning off daytime on port 13. When I look at /etc/xinetd.d/daytime* the 2 files say disabled yes So is there something else I should be looking at ? Thanks, Jerry
2006 Apr 01
1
routing in xen 3.0: icmp gets routed, but tcp/ip only partially
Hello folks, I have this really strange routing problem that no amount of googling and experimenting has been able to solve. Then again, I''m new to Xen and "advanced" networking, so I could be missing something very basic. Summary: an unprivileged domU with PCI frontend for a NIC is used as a router; icmp gets routed, but tcp/ip only partially. I''m using a
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi David, Thanks for your answer. Just to clarify, I would like to create 2 3 instructions put them in a function and execute them. Do you still think the JIT would be the best option? Thanks On Sun, Nov 18, 2018, 12:55 David Blaikie <dblaikie at gmail.com wrote: > If you're looking to execute code at runtime (within th eam process - or > across a network etc - as the one that
2012 Feb 29
1
can't convert Fixnum into String in relativity
good day i read about relativity gem but when i try to use it and make a test file and build it gives me an error =test.rb= <pre> require ''relativity'' opens_at = DayTime.new(9) #=> 09:00:00 closes_at = DayTime.new(12,30) #=> 12:30:00 </pre> <pre> /home/start/.rvm/gems/ruby-1.9.2-p290/gems/relativity-0.0.8/lib/ relativity/day_time/new.rb:24:in
2006 Apr 02
4
routing in xen 3.0 domU: icmp gets routed, but tcp/ip only partially
Hello folks, I have a really strange routing problem that no amount of googling and experimenting has been able to solve. Then again, I''m new to Xen and "advanced" networking, so I could be missing something very basic. Summary: an unprivileged domU with PCI frontend for a NIC is used as a router; icmp gets routed, but tcp/ip only partially. I''m using a xen-unstable
2004 Jul 22
1
Daytime - Nighttime
Is it possible to build a dialplan in which shifting from daytime to nightime is not hour based but phone driven ???
2004 Dec 22
2
Can't Receive/Send Calls
Hi, I can't receive/send calls with Asterisk. Could someone please give me a few pointers on my configuration? Regards, Norman Zhang ; sip.conf [general] disallow=all allow=ulaw port=5060 bindaddr=0.0.0.0 externip=x.x.x.x localnet=192.168.22.0 mask=255.255.255.0 context=inbound-sip maxexpirey=180 defaultexpirey=160 tos=reliability srvlookup=yes register =>
2012 Mar 18
2
Importing files
Hello, I'm trying to import into R files that contain data downloaded from logger devices as files with the following formats: .act .lig .trj .trn These files are essentially text files but use both tabs and commas as separators. I've tried the function scan: 1) scan("filename.act", what=character(0)) returns only two columns from the original 5 2) scan("copia.act",
2005 Oct 10
0
Asterisk behaving wierd!!
hello, I have been using asterisk now for about 2 years now on a RH8.0 it is our main call gateway. I have on the box 3 T1 TDM cards connected to 2 Rhino channel banks (FXS) and 1 CAC Access bank I (FXO) with so many softphones and ATA 186s. It has been working good till today some few hours ago. i just discovered that there were no dialtone on the phones. Asterisk did not spit out any error, it
2000 Jul 06
0
SSH backups - 1hr daytime; 8hrs nighttime
Hi, I posted the following message to the RedHat linux list to see if anyone had any thoughts about this problem. I have only received a few replies, all of which state that they have experinced poor performance problems with ssh on Solaris. They do not, however, state if it is openssh, which version, what hardware, or what version of Solaris. (All I can say is that we have had no problems with
2002 May 11
1
Rsync 2.5.5 hangs
Hey Everybody, I'm trying to use rsync to do a remote backup. First I open a ssh tunnel to the rsync daemon on the server. Then I run rsync through this tunnel. An example follows: ssh -v -x -p 1999 -L 8730:localhost:873 user@host.mydomain.com -f sleep 5 && rsync --port 8730 --verbose --update --archive --exclude='[Cc]ache' --delete-excluded --password-file
2006 Jan 26
0
Samba 3.0.21a and AIX 5.3 - Cannot see server on network
I compiled the 3.0.21a samba software with the following configure options: configure --prefix=/opt/samba --exec-prefix=/opt/samba --with-krb=/usr/krb5 --with-smbwrapper --with-syslog --with-mandir=/usr/man --with-winbind Everything compiled fine; however, I am unable to see the server on the microsoft network. My smb.conf file looks like the this: [global] workgroup = CAREMARKRX
2011 Jul 25
2
[LLVMdev] [llvm-testresults] bwilson__llvm-gcc_PROD__i386 nightly tester results
Hi Bob, >> A big compile time regression. Any ideas? >> >> Ciao, Duncan. > > False alarm. For some reason that I have not yet been able to figure out, these tests run significantly more slowly when I run them during the daytime, which I did for that run. I checked a few of the worst regressions reported here and they all recovered in subsequent runs. here is a crazy