Displaying 11 results from an estimated 11 matches similar to: "writing function : can't find an object"
2010 May 13
2
long command line cut in 2 parts
Dear group,
I have this command line in a function:
zz<-merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,VALUE=
NULL,PL=-VALUE*pl,quantity=NULL),PosB,all.x=T,sort=F)
I want to cut it in 2 lines (just for convenient purpose). Here is what I
did :
zz<-merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,
+
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]
2005 Nov 11
4
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 doesn't involve something 100x
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
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 May 13
1
access objects in my environment
Dear group,
Here are my objects in my environment:
> ls()
[1] "Pos100415" "Pos100416" "posA" "pose15" "pose16" "pose16t"
"position" "trade" "x"
I need to pass the object "Pos100415" to a function. This element is a
data.frame, obtained through a function: Pos(x)<-myfun(x)
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
2010 Apr 27
1
save a data frame in environment
Dear group,
Here is my function :
position<-function(x)
{
pose<-read.csv2((paste(c("LSCPos",x,".csv"),collapse="")),dec=".",sep=",",as
.is=T,h=T,skip=1)[,c(4,8,14,15)]
pose$CREATED.DATE<-as.Date(pose$CREATED.DATE,"%d/%m/%y")
futures<-pose[-grep("USD",pose[,1]),]
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