Displaying 20 results from an estimated 2000 matches similar to: "long command line cut in 2 parts"
2010 May 26
2
writing function : can't find an object
Dear group,
Here is my function:
#return the daily PL for day y
PLDaily<-function(x,y)
{
#find elements in my directory with "LSCPos" in the name, keep the numeric
part in the name and
#create a list
l<-gsub("\\D","",dir()[grep("LSCPos",dir())])
#select in the list the desired elements
2010 May 11
1
merge two data frames
Dear group,
I have these 2 following data frame:
allcon <-
structure(list(DESCRIPTION = structure(1:17, .Label = c("COFFEE C Jul/10",
"COPPER May/10", "CORN Jul/10", "CORN May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "HENRY HUB NATURAL GAS May/10",
"ROBUSTA COFFEE (10)
2010 May 21
4
indexing problem
Dear group,
Here is my environment :
> ls()
[1] "l" "PLglobal" "Pos100415" "Pos100416" "Pos100419"
"Pos100420" "position" "select" "Trad100415" "Trad100416"
"Trad100419" "Trad100420" "trade" "y"
With objects :
> l
[1]
2008 Jun 23
2
Pairwise Partitioning of a Vector
Hi,
How can I partitioned an example vector like this
> print(myvector)
[1] 30.9 60.1 70.0 73.0 75.0 83.9 93.1 97.6 98.8 113.9
into the following pairwise partition:
PAIR1
part1 = 30.9
part2 = 60.1 70.0 73.0 75.0 83.9 93.1 97.6 98.8 113.9
PAIR2
part1 = 30.9 60.1
part2 = 70.0 73.0 75.0 83.9 93.1 97.6 98.8 113.9
....
PAIR9
part1 = 30.9
2010 May 20
6
writing function
Dear group,
I am trying to write functions, but as a beginner, everything is not so
obvious.
Let's say I want the results in a list of elemts like this :
tot1, tot2, etc
Here is a function:
toto <-
function(x,y)
{
for(i in x:y){
paste(c("tot",i),collapse="")<-(i*2)
}
}
If I type this :
>toto(1,5)
I get this message error:
Error in paste(c("tot",
2007 Mar 08
2
Removing duplicated rows within a matrix, with missing data as wildcards
I'd like to remove duplicated rows within a matrix, with missing data
being treated as wildcards.
For example
> x <- matrix((1:3), 5, 3)
> x[4,2] = NA
> x[3,3] = NA
> x
[,1] [,2] [,3]
[1,] 1 3 2
[2,] 2 1 3
[3,] 3 2 NA
[4,] 1 NA 2
[5,] 2 1 3
I would like to obtain
[,1] [,2] [,3]
[1,] 1 3 2
[2,] 2 1 3
2017 Oct 04
0
[ANNOUNCE] xkeyboard-config 2.22
Hello folks
With a small delay, the September release of xk-c is there. Have fun!
Cheers
Sergey
=========================================
Akshay S Dinesh (2):
typofix tel-sarala key layout
Whitelist Indian keyboard layouts. #101532
Baurzhan Muftakhidinov (2):
Enable level3 ralt_switch by default in Kazakh (ext) layout.
Extend more keys in Kazakh (ext) layout.
Jonas
2005 Nov 11
0
Re: aec
> To everyone on the list: do *NOT* attempt to do echo cancellation with
> signals sampled using different clocks. This will *NOT* work. Just a
> 0.1% difference between the two sampling rates (it's sometimes worse
> than that) means that the impulse response drifts by 8 samples every
> second. There's just no way to efficiently track this. Or at least no
> way that
2010 Jun 02
8
bind select data frames
Dear group,
Here is my environment:
> ls()
[1] "DailyPL100419" "DailyPL100420" "DailyPL100421" "dd" "i"
"l" "PLglobal" "Pos100416" "Pos100419" "Pos100420"
"Pos100421" "position"
[13] "result" "sel"
2012 Feb 24
2
data frame manipulation with condition
Dear list,
n00b question, but still can't find any easy answer.
Here is a df:
> df<-data.frame(cbind(x=c("AA","BB","CC","AA"),y=1:4))
> df
x y
1 AA 1
2 BB 2
3 CC 3
4 AA 4
I want to modify this df this way :
if df$x=="AA" then df$y=df$y*10
if df$x=="BB" then df$y=df$y*25
and so on with other conditions.
TY for any
2010 May 26
5
(no subject)
Dear group,
Here is my data frame:
> dput(u)
structure(list(DESCRIPTION = structure(c(2L, 5L, 6L, 7L, 9L,
11L, 12L, 15L, 14L, 16L, 1L, 10L, 3L, 4L, 13L, 8L, 17L), .Label = c("COFFEE
C Jul/10",
"COPPER May/10", "CORN Jul/10", "CORN May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "HENRY HUB
2015 Aug 24
3
Build optimized R : openblas, MKL, ATLAS
On Mon, Aug 24, 2015 at 11:29 AM, Bj?rn-Helge Mevik
<b.h.mevik at usit.uio.no> wrote:
> arnaud gaboury <arnaud.gaboury at gmail.com> writes:
>
>> - Intel MKL: this is part of Intel Parallel Studio and is a paid
>> software. Now, there is the MKL package distributed by
>> Revolutionanalytics, but I am not certain how this can be distributed
>> for free. Is
2010 Jun 02
3
which function
Dear group,
Here is a list of elements :
l <-
c("100415", "100416", "100419", "100420", "100421", "100422",
"100423", "100426", "100427", "100428", "100429", "100430", "100503",
"100504", "100505", "100506", "100507",
2012 Feb 09
2
ifelse
Hello,
I need to print a screen message after a test.
>list<-c("10","1","100","10")
>ifelse(all(list %in% c(1,10,100)==TRUE),cat("YES\n"),cat("NO\n"))
YES
Error in ifelse(all(l %in% c(1, 10, 100) == TRUE), cat("YES\n"), cat("NO\n")) :
replacement has length zero
I have the correct answer, YES, but with
2011 Nov 10
13
dom0 - oom-killer - memory leak somewhere ?
Hello,
I work in a hosting company, we have tens of Xen dom0 running just fine,
but unfortunately we do have a few that get out of control.
Reported behaviour :
- dom0 uses more and more memory
- no process can be found using that memory
- at some point, oom killer kicks in, and kills everything, until even
ssh the box becomes hard
- when there is really no more process to kill, it crashes
2008 Jul 07
2
GSoC - Theora multithread decoder
Hi all,
I apologize to not keep you up to date to what is going on with my project.
Portavales has worked in a desk behind me and when we go to take coffee we
talk about the project. Second I didn't know we have to discuss weekly, it
was my fault. I should have read the rules. Sorry.
At the first month, I studied the code and the Theora Beta implementation.
The code is completely different
2010 Apr 23
3
substract start from the end of the vector
Dear group,
Here is my df :
df <-
structure(list(DESCRIPTION = c("PRM HGH GD ALUMINIUM USD 09/07/10 ",
"PRM HGH GD ALUMINIUM USD 09/07/10 ", "PRIMARY NICKEL USD 04/06/10 "
), CREATED.DATE = structure(c(18361, 18361, 18325), class = "Date"),
QUANITY = c(-1L, 1L, 1L), CLOSING.PRICE = c("2,415.90", "2,415.90",
2014 Aug 12
2
Re: issue when building/making package from git
On Tue, Aug 12, 2014 at 5:44 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
>
> Please try my suggestions here:
>
> https://www.redhat.com/archives/libguestfs/2014-August/msg00099.html
>
:: Synchronizing package databases...
core is up to date
extra is up to date
community
2.3 MiB 3.07M/s 00:01
2015 Dec 05
1
R_PROFILE_USER
On Sat, Dec 5, 2015, 9:39 PM peter dalgaard <pdalgd at gmail.com> wrote:
> On 05 Dec 2015, at 18:07 , arnaud gaboury <arnaud.gaboury at gmail.com>
wrote:
>
> In my shell environment, I have set a path to R_PROFILE_USER. The
> file, Rprofile.R, is a collection of small hacks.
>
> I want to build rstudio-server from source. Best is to $ unset
> R_PROFILE_USER
2015 Sep 02
4
Build R with MKL and ICC
After a few days of reading and headache, I finally gave a try at
building R from source with Intel MKL and ICC. Documentation and posts
on this topic are rather incomplete, sometime fantasist et do not give
much explanations about configure options.
As I am not sure if mine is correct, I would appreciate some advices and hints.
OS: Fedora 22
parallel_studio_xe_2016
Hardware : 8 Thread(s) per