Displaying 20 results from an estimated 70 matches similar to: "[xts, quantmod] segfault probelm when I work with memcpy function"
2001 Dec 27
3
read input from STDIN
Hello,
I have a perl program which produces the input. Instead of print it to a
file then let R read the file,
I want to let R to read the input directly from the perl output,
I am using a PERL IPC::open2 module for this,
local (*Read,*Writer);
$pid = open2(\*Read, \*Writer, "R --no-save --slave< my.R")
#input to R
for(){
print Writer data;
}
close Writer;
#R output
2010 Aug 06
1
apply family functions
Hi all,
I would like to flag each record in the data according to certain conditions
as specified below.
For example,
If "Close_date" in *dat* is between ("Open" & "Close") or ("Open1" &
"Close1") or ("Open2" & "Close2") in *oc, *flag the records as "Valid",
otherwise "Invalid"
I would like to
1999 Dec 06
2
perl advice
Hello-
Does anyone have a recommendation on how to call R from perl? I'm using
the IPC::Open2 module, and running R with the --slave and --quiet
options. The problem is that I can't predict how many lines of output I
should try to read for each command-- if any!
The ultimate goal is to use perl to provide a form-driven web interface,
but have R do the underlying calculations.
Thanks
2004 Dec 01
1
typo
In my previous mail the last line was supposed to be:
"It turns out I probably won''t use fork unless support FOR STREAMS is
added to it."
aslak
2004 Oct 04
2
open3 for windows
Hi all,
The topic of creating a unified API for open3 for Windows came up at
RubyConf 2004 this year.
Park, I was wondering if you would mind if we modified win32_popen so that
the API matches the open3 library that ships with Ruby.
This also means deciding whether or not to leave in the open2, open4, and
posix stuff. I guess it doesn''t hurt to leave this in, although Open3.open4
2006 Mar 10
8
domUloader kernel command line arguments?
domUloader potentially makes my life a lot easier, but from experiments
and looking at the code, it doesn''t seem like there is any way to pass
kernel command line arguments with it. Am I just missing something?
Thanks,
John Byrne
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2012 Jun 06
2
Main effects and interactions in mixed linear models
Dear all,
This question may be too basic quesition for this list, but if someone has
time to answer I will be happy. I have tried to find out, but haven't found
a consice answer.
As an example I use "Pinheiro, J. C. & Bates, D. M. 2000. Mixed-effects
models in S and S-PLUS. Springer, New York." page 225, where rats are fed
by 3 different diets over time, which body mass has
2005 Nov 16
2
two-way communication using Unix pipes
Hello,
I am trying to communicate with R from a perl program. Because this code
must be deployed on systems that are outside of my control I do not wish to
pursue the RSperl.pm approach which requires that R be compiled to use
shared libraries.
I have a custom, light weight module I have used with other command line
driven programs like Ferret and Grads. This module follows the standard perl
2005 Feb 22
3
Reproducing SAS GLM in R
Hi,
I'm still trying to figure out that GLM procedure in SAS.
Let's start with the simple example:
PROC GLM;
MODEL col1 col3 col5 col7 col9 col11 col13 col15 col17 col19 col21 col23
=/nouni;
repeated roi 6, ord 2/nom mean;
TITLE 'ABDERUS lat ACC 300-500';
That's the same setup that I had in my last email. I have three factors:
facSubj,facCond and facRoi. I had this pretty
2003 Apr 20
0
How I got Samba 2.2.8a to run on OpenBSD 3.2 i386
First of all, GREAT WORK! I now have my very own Windoze domain thanks to
Samba :)
Now, getting Samba to work fully on OpenBSD was harder than I'd think it
would be.
To get smbd to compile somewhat cleanly, I had to hack
./source/include/config.h thusly: remove USE_SETREUID, add USE_SETEUID.
Then, I hacked sec_ctx.c like the attached diff shows, to get rid of some
assert_gid panic when
2009 Feb 07
1
Yahoo data downloading problem
Hi,
I got some problems while was trying to download data from Yahoo using
yahoo.get.hist.quote() function. My script is as follows :
app <- yahoo.get.hist.quote("aapl", start="02/07/09", end="02/07/06",
quote="close")
However I got following error :
trying URL
2011 Jan 25
2
ggplot geom_boxplot and stat_smooth
Dear all
I would like to superpose some smoothing line through boxplot in ggplot
> dput(ad)
structure(list(konc.f = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 6L, 6L, 6L,
7L, 7L, 7L, 7L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L,
4L, 4L, 4L, 4L, 4L, 4L, 4L, 6L, 6L, 6L, 7L, 7L, 7L, 1L, 1L, 1L,
1L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L,
2012 Aug 05
1
R: Help xts object Subset Date by Day of the Week
I have a xts object made of daily closing prices I have acquired using
quantmod.
Here is my code:
library(xts)
library(quantmod)
library(lubridate)
# Gets SPY data
getSymbols("SPY")
# Subset Prices to just closing price
SP500 <- Cl(SPY)
# Show day of the week for each date using 2-6 for monday-friday
SP500wd <- wday(SP500)
# Add Price and days of week together
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers,
I have met a difficult problem on explaining the differences of principal
component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't
met before.
Althought they have got the same eigenvalues, their coeffiecients were
different.
First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show
the original dataset, hoping sb. to try and explain it.
2006 Dec 14
1
subset question
I have a data set p1982, its structure is the following
Then I take 20 observations from this dataset, and assign to pr.
in p1982, p has 1982 levels, in dataset pr, p should have 1 levels.
But I do str(pr), it shows that p still has 1982 levels.
also for these
> pr$aa
[1] ARG THR ASP CYS TYR ASN VAL ASN ARG ILE ASP THR THR ALA SER CYS LYS
THR ALA LYS
Levels: ALA ARG ASN ASP CYS GLN
2017 Dec 05
2
PLS in R
Hello, I need help with a partial least square regression in R. I have read
both the vignette and the post on R bloggers but it is hard to figure out
how to do it. Here is the script I wrote:
library(pls)
plsrcue<- plsr(cue~fb+cn+n+ph+fung+bact+resp, data = cue, ncomp=7,
na.action = NULL, method = "kernelpls", scale=FALSE, validation = "LOO",
model = TRUE, x = FALSE, y =
2012 Jun 07
0
[R-sig-ME] interpretation of main effect when interaction term being significant (ex. lme)
HI Dave,
My comment was based? on:
"
>The main question with this test was if the interaction term is significant (i.e. growth rate). However, my question is could I also look at the p-values of the main effects to
?>say if body mass increase significant with body mass?"
Here, the result shown were from the summary of the linear model.?? We report the p-values of the main
2012 Oct 15
1
performance analytics
hi Michael,
am sorry for the incomplete reply .
csv file data havinmg like this ,
>getSymbols("IBM")
>weekly_data = to.weekly(week_name)
>dataframe=data.frame(weekly_data)
>outputfile_name="F:\\R-programs\\Outputfile.csv"
>write.table(dataframe, file =outputfile_name,sep = ",",col.names
=TRUE,row.names = T)
> datafrom_table <-
2012 Feb 28
9
[LLVMdev] Proposed implementation of N3333 hashing interfaces for LLVM (and possible libc++)
Hello folks,
TL;DR: This is my proposed hashing interface based on a proposed standard
hashing interface. It also is implemented with a much faster and higher
quality algorithm than the current one. This is an *early draft* of the
code, looking for initial feedback.
There has been recent interest in improving the quality and consistency of
LLVM's approach to hashing. In particular, getting
2012 Aug 10
1
virtio-scsi <-> vhost multi lun/adapter performance results with 3.6-rc0
Hi folks,
The following are initial virtio-scsi + target vhost benchmark results
using multiple target LUNs per vhost and multiple virtio PCI adapters to
scale the total number of virtio-scsi LUNs into a single KVM guest.
The test setup is currently using 4x SCSI LUNs per vhost WWPN, with 8x
virtio PCI adapters for a total of 32x 500MB ramdisk LUNs into a single
guest, along with each backend