similar to: How to join data.frames and vectors of different length, in an inteligent way?

Displaying 20 results from an estimated 80 matches similar to: "How to join data.frames and vectors of different length, in an inteligent way?"

2008 May 21
3
Converting a 'difftime' to integer - How to???
I want to find the DOY (Day of Year) of some dates. I think to substract the date 1. January from the data to achive this. Something like: > d <- as.Date("2006-03-13") - as.Date("2006-01-01") +1 > d Time difference of 72 days So far so good. But d is a 'difftime' object. How do I get an Integer value from that? I tried severel things, incuding the
2006 Nov 03
2
Installing a package - and making it work?
Dear list - Propoerly a beginner question, so bare with my frustration... I tried install the 'shapefiles' package into R 2.4.0 but it seems that the install had little effect... > install.packages(c("shapefiles")) --- Please select a CRAN mirror for use in this session --- trying URL
2011 Jan 27
1
normalizing prizes to a specific year - how to?
Dear list I have a large data frame with house prices. Prices have been converted to price per m2, to be able to compare. Prices are spread over almost 10 years, each price is tagged with the year it relates to. I would like to 'normalize' all the prices to, eg. 2010 prices. The data frame looks like this > head(dafP) Y P 1 2004 11199.60 2 2005 15310.10 3 2005 19491.50 4
2008 Oct 17
2
Text (eg. summary) to text file, Howto?
Simple question... I would like to dump some summries of lm()'s to small seperate text files. I have looked at: print(), but it don't support output to file cat(), but it claims that 'sum1' is a list write, but that just uses cat()... The script goes something like this: ... lmMax <- lm(NUMAMMON ~ YYYY*MM*DD) sum1 <- summary(lmMax) # help needed here... how to dump sum1
2002 Nov 25
2
Q: Segmentation fault at all commands ?
Dear List Sorry if this is trivial, but I can't find it in the manual, FAQ or mail list (2002). I just installed R 1.6.0 (2002-10-01) on Linux R.H. 7.2 (2.4.9-32.5) on an DIGITAL AlphaServer 800 5/500 The program starts up nicely but exits immediately with a "Segmentation fault" at the first command. It seems that it doesn't matter what command, I tried q(), help(), version,
2007 Apr 18
1
Changing axis lable text size in plots?
Dear list I'm plotting ( boxplot() and plot() ) some data for a publication. The editor would like the text labels on the plots in a larger font. I'm doing something like this: <snip> jpeg( filename = "D:/Martin/Work/CleanPath/RAF1%03d.jpg", width = 1000, height = 600, pointsize = 12, quality = 100, bg = "white", res = 96, restoreConsole = TRUE )
2008 Aug 25
2
Using sample() with a data frame ?
I have a data frame (daf1), that holds +80000 records, and 10 variables (i.e. 10 columns and some 80000 rows) > length(daf1) [1] 10 > length(daf1[,1]) [1] 83805 I would like to sample() e.g. 10000 records from this. I use: > daf2 <- sample(daf1, 1000, replace = FALSE, prob = NULL) Error in `[.data.frame`(x, .Internal(sample(length(x), size, replace, : cannot take a sample larger
2004 Sep 22
5
block statistics with POSIX classes
I have a monthly price index series x, the related return series y = diff(log(x)) and a POSIXlt date-time variable dp. I would like to apply annual blocks to compute for example annual block maxima and mean of y. When studying the POSIX classes, in the first stage of the learning curve, I computed the maximum drawdown of x: > mdd <- maxdrawdown(x) > max.dd <- mdd$maxdrawdown > from
2003 Feb 17
2
Q: libreadline.so.4.1 problems on Alpha/Linux
Dear List I'm trying to run R on a DIGITAL Alpha / Linux RedHat 7.2 The .rpm requires libreadlin.so.4.1 RedHat 7.2 comes with libreadline.so.4.2 I installed the R-1.6.0-1.aplha.rpm with option --nodeps, since it otherwise complained that the required libreadline.so.4.1 was missing. This seemed to be the only unsatisfied dependency, at least that was the only one mentioned when installing
2005 Mar 23
1
Gini's Importance Value Variable = Inf
Hi All, In the script below, the importance measure for column 4 (ie MeanDecreaseGini) indicated "Inf" for V7. Running the getTree command showed that "V7" had been selected at least twice in one of the trees for Random Forest. So the "Inf" command was not generated as a result of dividing the sum of the decreases by 0. Any suggestions on what may be causing the
2010 Feb 11
1
Using sapply on a two argument function
Dear R users, I have a function (simplified here) that accepts two arguments and performs various calculations: foo <- function(y, x) { a <- y*sqrt(x) b <- a+2 c <- a*b return(c) } If I call the function as follows I get the result I desire: > foo(.1, 1:12) [1] 0.2100000 0.3028427 0.3764102 0.4400000 0.4972136 0.5498979 0.5991503 0.6456854 0.6900000 0.7324555 0.7733250
2010 Sep 07
3
Call Center: scripting for call routing, reporting, login and logout, CTI
Hi All; I would like to use Asterisk for a call center, but really does not know if Asterisk support the following in a good way: 1) Ability to do an inteligent routing, so to route the call to the proper skill group based on the caller information? 2) If I can create skill groups and then the agent will login to this skill group. 3) What about reporting to check the call center performance?
2007 Jan 26
2
Most reliable setup for mongrel
I''m looking for the most reliable setup for Mongrel. Reliable meaning avoiding things like sending too many requests to a single mongrel process, or sending requests to a mongrel process that has hung for some reason. The handler will most likely be rails, but it might be a custom handler. SSL is also a requirement, which limits the options a bit but it can''t be done away
2017 Feb 26
2
samba-tool domain classicupgrade smb_krb5_context_init_basic failed (Invalid argument)
On 27/02/17 08:05, Tom Robinson via samba wrote: > On 17/02/17 07:58, Andrew Bartlett via samba wrote: >> On Fri, 2017-02-17 at 07:48 +1100, Tom Robinson via samba wrote: >>> Anyone? >> Can you please post a gdb backtrace --full? >> >> > Hi, > > I replied last week with a full backtrace but I didn't see my post come through. The email was only >
2017 Feb 16
2
samba-tool domain classicupgrade smb_krb5_context_init_basic failed (Invalid argument)
On Fri, 2017-02-17 at 07:48 +1100, Tom Robinson via samba wrote: > Anyone? Can you please post a gdb backtrace --full? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 862 bytes Desc: This is a digitally signed message part URL:
2008 Apr 26
0
Help with simulation of heteroskedasticity
Hello guys! Sorry to bother with such a question I was trying to generate a monte carlo simulation with heteroskedasticity errors. but I am not sure if the command line that I had wrote is quite correct. the type of heteroskedasticity that I want to create is such as var(e) = var(x^4) I began my work with this x<- rnorm (100, 2,0.4) # generating an indepedent random variable e<-
2007 Nov 02
1
one way RTP using NAT
Hi, I'm having a problem with my asterisk, trying to connect to a CISCO 2840 IOS12.x ASterisk is behind firewall NATing, when it do the handshaking for RTP, it sends his internal IP instead of sending the external one. How can I tell the asterisk box, to modify that and send the external IP? I tryied with Sip.conf's externip=xxxx and localnet=xxxx, nat=yes Nothing seems to change the
2017 Jan 30
0
classic upgrade fails with 4.6-test
On Mon, 30 Jan 2017 21:59:06 +1300 Andrew Bartlett <abartlet at samba.org> wrote: > On Mon, 2017-01-30 at 08:42 +0000, Rowland Penny wrote: > > On Mon, 30 Jan 2017 15:44:15 +1300 > > Andrew Bartlett <abartlet at samba.org> wrote: > > > > > On Sun, 2017-01-29 at 22:43 +0000, Rowland Penny via samba wrote: > > > > On Sun, 29 Jan 2017 17:07:39
2017 Jan 29
0
classic upgrade fails with 4.6-test
On Sun, 29 Jan 2017 17:07:39 -0500 Sonic <sonicsmith at gmail.com> wrote: > On Sun, Jan 29, 2017 at 4:54 PM, Rowland Penny <rpenny at samba.org> > wrote: > > > When you built Samba, did you use the '--with-ntvfs-fileserver' or > > '--enable-selftest' options with configure ? > > > > I used '--without-ntvfs-fileserver'. OK,
2020 Apr 30
3
Removing IP address from DC
On 30/04/2020 09:50, William Edwards wrote: > I want to do this because IPv4 is a legacy protocol. I do not need IPv4, it is old, and I do not want IPv4 in my network if I don't need it. Just because something is legacy, it doesn't mean you cannot still use it. >> Do you have more than 2,147,483,647 computers, printers, scanners etc ? > No. > Then you have no real need to