Displaying 20 results from an estimated 3000 matches similar to: "how to add "waiting for page change" to my script"
2009 Nov 13
4
processing log file
Dear all, I'm trying to process a log file which logs the date, the username and the computer number accessed. The table looks like this:
>table.users
Date UserName Machine
1 2008-11-25 John 641
2 2008-11-25 Clive 611
3 2008-11-25 Jeremy 641
4 2008-11-25 Walt 722
5 2008-11-25 Tony 645
6 2008-11-26 Tony 645
7 2008-11-26
2012 Feb 15
2
Control number of assets in resulting portfolio with optimizations using package fPortfolio
Dear All,
I am using package fPortfolio to run minimum variance portfolio
optimizations in R. I already know how to set portfolioSpecs, portfolio
objects and constraints. Unfortunately I am not able to set the following
type of constraints.
I have a timeSeries object with returns data for roughly 1.5k assets for 261
subperiods (workingdays) and want to compute the global minimum variance
2007 Aug 10
3
having problems with factor()
Dear R Help,
I have a set of data of heights of trees described by area that they are in. The areas are numerical (0 to 7).
ht area
1 320 3
2 410 4
3 230 2
4 360 3
5 126 1
6 280 2
7 260 2
8 280 2
9 280 2
10 260 2
.......
180 450 4
181 90 1
182 120 1
183 440 4
184 210 2
185 330 3
186 210 2
187 100 1
188 0 0
I want to convert the
2011 Dec 01
1
Fw: calculate mean of multiple rows in a data frame
NAME
ID
a
b
c
d
1
Control_1
probe~B01R01C01
381
213
345
653
2
Control_2
probe~B01R01C02
574
629
563
783
3
Control_1
probe~B01R09C01
673
511
521
967
4
Control_3
probe~B01R09C02
53
809
999
50
5
MM0289~RFU:11810.15
probe~B29R13C06
681
34
115
587
6
MM0289~RFU:9238.41
probe~B29R13C05
784
443
20
784
7
MM16597~RFU:36765.38
probe~B44R15C20
719
251
790
445
8
MM16597~RFU:41258.94
probe~B44R15C19
677
2018 May 31
1
bracketing for optimize
dear R wizards: `optimize()` requires the user to provide the
brackets. I can write a bracketing routine, given a function and a
starting point, but I was wondering whether there was already a
"standard" user-exposed implementation. (Presumably, this is used in
nlm, too; alas, nlm is in C, not native R.) regards, /iaw
2012 Jan 13
1
Portfolio Optimization
Hi,
I'm an R newbie and I've been struggling with a optimization problem for
the past couple of days now.
Here's the problem - I have a matrix of expected payouts from different
stock option strategies. Each column in my matrix represents a different
stock and each row represents the return to the strategy given a certain
market move. So the rows are not a time series of percentage
2011 Sep 21
1
R CMD build and vignettes
Dear R-helpers,
www.statistik.lmu.de/~*leisch*/*Sweave*/*Sweave*-Rnews-2003-2.pdf
says that R CMD build creates the pdf from a .Rnw file. But when I do R CMD
build followed by R CMD check it gives me a warning that there is a vignette
without a PDF. My query is : when
R CMD build works it creates a pdf in the doc subdirectory of the directory
returned by system.file(package = mypackage) and not
2012 Jan 07
1
constructing yieldcurve
Hello,
With which package can I build a yield curve using swap data with the
bootstrapping method?
Thanks for the reaction,
André
[[alternative HTML version deleted]]
2012 Apr 23
2
subset daily to monthly in a zoo or xts
Dear R users,
I want to subset a daily zoo series according to its month, find % of "NA"
in each month.
I am finding it difficult to subset the daily dataset into monthly for the
given operation.I am planning to do this for a huge dataset.
Thanks in advance.
Regards
Vikram
[[alternative HTML version deleted]]
2012 Jan 09
2
RODBC vs gdata
Hi
one col in my Excel file contains many numbers. But on line 3000 and
some other lines are strings like "FG 1". "RODBS" seems to omit this
lines. "gdata" works, but is much slower.
Is this a bug of RODBC or do I apply it wrong?
Example with the same "file.xlsx"
library(RODBC); excel <- odbcConnectExcel2007("file.xlsx")
tab <-
2011 Oct 04
2
Create combinations of rows
I don't quite know how to word what I want, but if I have
(1, 2, 3); (a, b, c); (x, y)
I want:
1 a x
1 b x
1 c x
1 a y
1 b y
1 c y
2 a
...
and so forth
What is the appropriate command?
Best,
Don
--
View this message in context: http://r.789695.n4.nabble.com/Create-combinations-of-rows-tp3872641p3872641.html
Sent from the R help mailing list archive at Nabble.com.
2012 Feb 20
3
How to determine a subset of a binary strings?
Hi,
I need some neat ways of determing a subset of binary strings. For example,
x=c(0,0,1), y=c(0,1,1), z=c(0,1,0). So x is a subset of y and z is also a
subset of y, but x is not a subset of z.
I tried to search R functions and packages but no hits. Any ideas?
Best,
Jing
--
Jing Tang, PhD
Senior Researcher
Finnish Institute of Molecular Medicine (FIMM)
FI-00014 University of
2011 Sep 22
2
suggestions argument in rbga function in genalg package
Would someone be so kind as to provide example code where they use the suggestions argument in the rgba function
In genalg? I can't get it to work.
The following code works just fine:
GenFit <-rbga(Lower, Upper, evalFunc = evaluate)
Lower and Upper are each numeric vectors with 7 elements. Evaluate is an objective function.
However, when I want to use a suggested chromosome, I get an
2011 Dec 19
2
Constrained Optimisation
Dear All
I have a constrained optimisation problem, I want to maximise the following
function
t(weights) %*% CovarianceMatrix %*% weights
for the weights,
subject to constraints on each element within the weights & the weights
vector summing to 1.
i.e.
weights = (x1, x2, x3), where x1 is within some given range (a +b, a - b).
I have tried to do this using the optim function in R,
2012 Jan 08
2
splitting strings effriciently
Folks,
I have a data frame with 4861469 rows that contains an ip address
xxx.xxx.xxx.xxx as one of the columns. I want to assign a site to each
row based on IP ranges. To do this I have a function to split the ip
address as character into class A,B,C and D components. It works but is
horribly inefficient in terms of speed. I can't quite see how one of the
l/s/m/t/apply functions could be
2009 Nov 25
1
Re-arrange Columns in data frame
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091125/789611db/attachment-0001.pl>
2007 Aug 13
2
question regarding is.factor()
Dear all, please help with what must be a straightforward question which I can't answer.
I add a column of my dataframe as factor of an existing column e.g.
df[,5] <- factor(df[,2])
and can test that it is by is.factor()
but if I did not know in advance what "types" the columns were, is there a function to tell me what they are.
i.e. instead of
2011 Dec 13
4
sum with dates
How do I sum 15 years to my dataset?
original dataset
dates val
1 2001-01-12 1.2
2 2001-02-12 1.2
3 2001-03-12 1.2
result
dates val
1 2016-01-12 1.2
2 2016-02-12 1.2
3 2016-03-12 1.2
2011 Dec 12
3
For loop indicies
I would like to run a for loop with an index going from 0 to 499 but the following seems to miss out the first value:
C <- 499
for (i in 0:C)
The alternative is:
C <- 500
for (i in 1:C)
{
#Then every time I use i, I replace it with i-1
}
Is this a good way to do it or is tere a better way?
Thank you,
ThomasThis message and any attachment are intended solely for the addressee and may
2024 Jan 30
2
Basic astronomy package recommendation wanted.
On Tue, 30 Jan 2024, Richard O'Keefe writes:
> Given
> - UTC timestamp
> - a location (latitude,longitude,elevation)
> I want to know
> - the sun angles
> - the moon angles
> - the phase of the moon.
> I looked on CRAN for astronomy, but didn't notice anything that seems
> to offer what I want. I could try coding these functions myself, but
> "if