Displaying 20 results from an estimated 8000 matches similar to: "How to avoid switching on input type?"
2009 Mar 21
4
Problem with zoo and rbind() converting matrix to vector
require( zoo )
inp <- c( 5, 9, 4, 2, 1 );
m <- zoo( cbind( inp ), as.Date("2003-02-01") + (0:(length(inp)-1)));
dim( m ) # [1] 5 1
dim( m[1,,drop=FALSE] ) # [1] 1 1 - ok
dim( lag( m, -1 )) # [1] 4 1 - ok
dim( rbind( m[1,,drop=FALSE], lag(m,-1) )) # NULL - converted from zoo
matrix to zoo vector!?!?
# any way to keep the last line as a zoo matrix???
--
View this message in
2011 Dec 05
1
about interpretation of anova results...
quantreg package is used.
*fit1 results are*
Call:
rq(formula = op ~ inp1 + inp2 + inp3 + inp4 + inp5 + inp6 + inp7 +
inp8 + inp9, tau = 0.15, data = wbc)
Coefficients:
(Intercept) inp1 inp2 inp3 inp4
inp5
-0.191528450 0.005276347 0.021414032 0.016034803 0.007510343
0.005276347
inp6 inp7 inp8 inp9
0.058708544
2005 Dec 19
8
Simply Ruby question: "zerofill"
Hi there-
What''s the easiest/most efficient way to perform a zerofill in Ruby?
i.e. Given the value ''val'', I would like to do something like:
val = 43
puts val.zerofill(8)
---> "00000043"
gsub? sprintf of some sort?
Jake
--
Posted via http://www.ruby-forum.com/.
2013 Apr 17
1
Merging big data.frame
Hi all,
I am trying to merge 2 big data.frame. The problem is merge is memory
intensive so R is going out of memory error: cannot allocate vector of size
360.1 Mb. To overcome this, I am exploring option of using data.table
package. But its not helping in term of memory as merge in data.table is
fast but not memory efficient. Similar error is coming.
My inputs are
inp1
V1 V2
1 a i1
2 a i2
3 a
2010 May 07
3
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>> This seems counter intuitive to me, I can understand that C assigned that behavior somewhat arbitrarily to uninitialized global variables, but in LLVM there is explicitly a common linkage attribute to get that behavior. Nothing in the llvm language reference indicates the behavior of a global with the 'internal' linkage attribute
2010 May 07
0
[LLVMdev] AsmPrinter behavior
On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>
> This seems counter intuitive to me, I can understand that C assigned that
>> behavior somewhat arbitrarily to uninitialized global variables, but in LLVM
>> there is explicitly a common linkage attribute to get that behavior. Nothing
>>
2008 Mar 23
1
[LLVMdev] a quick typo in the ARM LLVM backend
So, a while back I got a compile error where the assembly was missing some whitespace between a .set and the identifier and tracked it down to this simple mistake that I just verified is still in the tree:
Index: lib/Target/ARM/ARMTargetAsmInfo.cpp
===================================================================
--- lib/Target/ARM/ARMTargetAsmInfo.cpp (revision 48700)
+++
2010 May 07
4
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 10:02 AM, Aaron Gray wrote:
> On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>
>>> This seems counter intuitive to me, I can understand that C assigned that behavior somewhat arbitrarily to uninitialized global variables, but in LLVM there is explicitly a common linkage
2009 Jun 11
2
How to force R to print 2 decimal places in column of a data.frame?
How to force R to print 2 decimal places in column of a data.frame? I tried to do so:
x = inp(format(rounf(inp$Tamanho, 2), nsmall = 2),)
where "INP" is data.frame and "Size" is the name of column. But has error:
Error in eval.with.vis(expr, envir, enclos) :
could not find function "inp"
Lesandro
Veja quais s?o os assuntos do momento no Yahoo! +Buscados
2011 Dec 05
1
about error while using anova function
fit1<-rq(formula=op~inp1+inp2+inp3+inp4+inp5+inp6+inp7+inp8+inp9,tau=0.15,data=wbc)
fit2<-rq(formula=op~inp1+inp2+inp3+inp4+inp5+inp6+inp7+inp8+inp9,tau=0.5,data=wbc)
fit3<-rq(formula=op~inp1+inp2+inp3+inp4+inp5+inp6+inp7+inp8+inp9,tau=0.15,data=wbc)
fit4<-rq(formula=op~inp1+inp2+inp3+inp4+inp5+inp6+inp7+inp8+inp9,tau=0.15,data=wbc)
2010 May 07
0
[LLVMdev] AsmPrinter behavior
On Fri, May 7, 2010 at 10:14 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 10:02 AM, Aaron Gray wrote:
>
> On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
>>
>> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>>
>> This seems counter intuitive to me, I can understand that C assigned that
2020 May 12
4
CentOS7 and NFS
Hi,
I need some help with NFSv4 setup/tuning. I have a dedicated nfs server
(2 x E5-2620? 8cores/16 threads each, 64GB RAM, 1x10Gb ethernet and 16x
8TB HDD) used by two servers and a small cluster (400 cores). All the
servers are running CentOS 7, the cluster is running CentOS6.
Time to time on the server I get:
?kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with
incorrect
2008 Jan 24
1
Sliding Window Time Series Analysis - hourly rainfall
I have a time series of rainfall in a dataframe. I would like to be
able to aggregate this using a sliding window approach- i.e. a new 24
hourly total is calculated for each hours rainfall. I'm struggling to
understand how this might be achieved - currently I've tried looping a
sum function to re-calculate a new total at every stage of the loop.
for (inp[[9]] in
2014 Jan 06
1
Re: [PATCH 2/2] lib: utf16: Fix const-correctness issues in _hivex_recode function.
On Tuesday 31 December 2013 14:27:11 Richard W.M. Jones wrote:
> This patch assumes that iconv doesn't actually modify the
> input buffer, even though it is declared as char *.
> ---
> [...]
> @@ -51,10 +51,11 @@ _hivex_recode (char *input_encoding, const char
> *input, size_t input_len, errno = err;
> return NULL;
> }
> - char *inp = input;
> + const
2020 May 12
2
CentOS7 and NFS
Le 12/05/2020 ? 16:10, James Pearson a ?crit?:
> Patrick B?gou wrote:
>>
>> Hi,
>>
>> I need some help with NFSv4 setup/tuning. I have a dedicated nfs server
>> (2 x E5-2620? 8cores/16 threads each, 64GB RAM, 1x10Gb ethernet and 16x
>> 8TB HDD) used by two servers and a small cluster (400 cores). All the
>> servers are running CentOS 7, the cluster is
2011 Sep 09
3
Read a list of files into named R data.frames
I have a collection of .csv files in a directory, and want to read them
into R data.frames whose names
are the same as the file names, without the .csv extension
e.g., from
> (files <- list.files(pattern="*.csv"))
[1] "Allstar.csv" "AllstarFull.csv"
[3] "Appearances.csv" "AwardsManagers.csv"
[5]
2013 Jun 18
1
deSolve question
Dear All
wonder if you could provide some insights on the following: currently I have this code which produces the expected results:
require(deSolve)
pars <- list(k = 0.08,v=15)
intimes <- c(0,0.5,12)
input <- c(800,0,0)
forc <- approxfun(intimes, input, method="constant", rule=2)
derivs <- function(t, state, pars) {
inp <- forc(t)
dy1 <- - pars$k * state[1]
2020 Jul 09
1
CentOS7 and NFS
Hi Orion,
no, I still have this problem. I delay working on it as I the latest
updates have not been installed on the server and on the client. I'll
work again on this problem as soon as possible.
Thanks Charles for your detailed information on how to track this
problem. I'll check all these metrics.
I have several clients for this nfs server and the problem seems only to
occur from the
2020 May 13
2
CentOS7 and NFS
Le 13/05/2020 ? 07:32, Simon Matter via CentOS a ?crit?:
>> Le 12/05/2020 ? 16:10, James Pearson a ?crit?:
>>> Patrick B?gou wrote:
>>>> Hi,
>>>>
>>>> I need some help with NFSv4 setup/tuning. I have a dedicated nfs server
>>>> (2 x E5-2620? 8cores/16 threads each, 64GB RAM, 1x10Gb ethernet and 16x
>>>> 8TB HDD) used by two
2020 Jun 01
3
CentOS7 and NFS
Le 13/05/2020 ? 02:13, Orion Poplawski a ?crit?:
> On 5/12/20 2:46 AM, Patrick B?gou wrote:
>> Hi,
>>
>> I need some help with NFSv4 setup/tuning. I have a dedicated nfs server
>> (2 x E5-2620? 8cores/16 threads each, 64GB RAM, 1x10Gb ethernet and 16x
>> 8TB HDD) used by two servers and a small cluster (400 cores). All the
>> servers are running CentOS 7, the