Displaying 20 results from an estimated 200 matches similar to: "writing a simulation"
2009 Aug 04
2
Caculate first difference from a dataframe; write a simulation
Dear R Users
I'm writing my first simulation in R.
I've put across my problems with a smaller example in the attachment along
with the questions.
Please help.
Best regards
Meenu
-------------- next part --------------
mydat<-read.table(textConnection("Level spread change State
4.57 1.6 BlF NA
4.45 2.04 BrS NA
3.07 2.49 BlS NA
3.26 -0.26 BlF NA
2.80 0.22 BrF NA
3.22 2.5 BrS NA
2009 Jul 28
1
Sort a column in a dataframe
Dear Users
This is my dataset called mydata4. I want to sort the dataframe on the first
column PxMid which is basically a column with dates.
I've tried mydata4<-mydata4[order(mydata4$PxMid),] but it doesnt work. Could
it be because these are dates?
Please help I'm really stuck !!
Thank you for your time.
Regards
Meenu
PxMid EU0006MIndex.x DMSW1Curncy.x DMSW2Curncy.x DMSW3Curncy.x
1
2009 Jul 31
1
Fill dataframe from a table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below
Prob of States
Changes State1 State2 State3 State4
A Pa1 Pa2 Pa3 Pa4
B Pb1 Pb2 Pb3 Pb4
C Pc1 Pc2 Pc3 Pc4
D Pd1 Pd2 Pd3 Pd4
and I have a dataframe called
2009 Aug 01
2
Add columns in a dataframe and fill them from another table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put these probabilities
in my dataframe mydata(given after the prob table).
Prob of States
Changes State1 State2 State3 State4
a
2009 Jul 28
1
Sort a dataframe on the column Date
Dear Users
I have a dataframe called mydata4 of the following order with the first
column as a date and the rest of the columns are numeric with rate.
Column 1 Rate1 : Rate 20
(PxMid)
01/01/2003
07/01/2001
----
----
--
I wish to sort this dataframe on the first col in ascending order.
I tried to do the following
mydata4<-mydata4[,order(mydata4$PxMid)]
This give an error.
Please help.
2002 Sep 04
1
Smbpasswd file problem
----- Original Message -----
From: Meenu Gupta
To: sabma@lists.samba.org
Sent: Wednesday, September 04, 2002 2:21 PM
Subject: Smbpasswd file problem
Hi ,
I have installed Samba server on Red Hat Linux7.1. I was trying to provide authenticated access to my shares using the encrypted password via the security = user option in my smb.conf .
I have also set the smb password file in the global
2009 May 18
1
Connection to Microsoft SQL Server
Dear Users
I am new to R. I'm trying to make a connection to Microsoft SQL Server via
R.
How can I find the correct syntax to make the connection? The Help pdf file
has an example for mySql but there's isnt much on SQL Server.
Please help.
I am trying the following code
library(RODBC)
con<-odbcConnect(dbname,hostname)
How do I specify the driver,userid,password etc?
Many thanks for
2004 Jun 18
2
possible writefd_unbuffered error; what am I screwing up this time
I am trying to execute rsync manually at a "remote" server to test out --read-batch execution.
I created the batch files on another server and then rcp'ed them to the "remote" server. I had some issues of not having the
correct working directory on the remote system when I did an rsh "remote" rsync --read-batch ...... so I opened a telnet session
on the remote
2006 Jun 28
2
read file with readBin (the file was saved with a C-routine)
Hello!
I have problems with using of "readBin" to read files, which was written in C with "fwrite". In the C-File there is the following Code:
fwrite(MyitINI,sizeof(itINItype),1,outfile);
where MyitINI is a structure of the following form
typedef struct{
int KernelFileSave; /* Determined, if Systemmatrix saved or not.*/
char KernelFileName[200]; /* A-Matrix name
2003 Oct 15
1
help with aggregate.survey.design
I am trying to modify aggregate.data.frame to create an aggregate method for
survey design objects. I am running into problems because survey design
objects are lists, with the variables and other design information stored in
separate dataframes, or objects of other classes, in this list. *Apply and split
functions do not seem to work on the design objects. How do I approach this,
without
2009 Apr 12
2
First Derivative of Data Matrix
I am really new to R and ran across a need to take a data matrix and
calculate an approximation of the first derivative of the data. I am more
than happy to do an "Excel" kind of calculation (deltaY/deltaX) for each
pair of rows down the matrix, but I don't know how to get R to do that kind
of calculation. I'd like to store it as a 3rd column in the matrix as well.
My data
2011 Nov 08
0
Sound shuts off when going past the main menu in MGS1
I've got Metal Gear Solid running fairly smoothly in Wine 1.3.31 on Mac OSX Snow Leopard, with no instability or crashes so far. When I start the game, the sound acts as it should-- however, going past the main menu (such as to Briefing or New Game) causes the sound to stop working. How can this issue be fixed?
Here's my console output:
Code:
2000 Sep 29
2
segmentation faults when unused argument
Dear Rs,
quite often in I had segmentation faults of the following kind:
Error in brf.infobase(nn, Pc, knams = knams, plot = plot, dev = dev,
quiet = quiet, :
unused argument(s) (df ...)
Process R segmentation fault at Fri Sep 29 15:46:27 2000
This happened when I (wrongly) called a routine with an argument which
the routine
did not support.
platform i386-pc-linux-gnu
arch i386
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
If anyone is intrested, i was hardly missing such a feature in prototype
(for displaying well formatted error dialogs and things like that):
Position.center = function(element){
var options = Object.extend({
zIndex: 999,
update: false
}, arguments[1] || {});
element = $(element)
if(!element._centered){
2006 Feb 18
0
Move element into view
Hello,
I am in fly-by mode as I am still more than busy, so I just dumb this
one out for anyone interested. Adapt it for your needs if you like it.
This effect is similar to ScrollTo, but scrolls the viewport
vertically the minimal amount necessary to bring the element into
view.
Usage: new Effect.ScrollToFullView(element, {duration: 0.6, offset: 10});
Offset is the distance in pixel to the
2009 Dec 17
2
Sweave Makefile issue
Dear R-specialists,
I am trying to create a Makefile that will first convert all my .Rnw
files into .tex files and then, that will run the LaTeX compiler to
produce a pdf document. This issue has been discussed before. Hence,
I've basically adapted a Makefile I found at
http://n4.nabble.com/R-Sweave-R-and-complex-latex-projects-td810020.html#a810023
to make it compatible with a Windows
2011 Sep 09
1
1 TByte (99,5%) data missing on rsync backup???
Hi,
I have a weird problem with RSync:
On a NAS are about 1,2 TB data. When I plug in a harddisk and make a
backup with RSync, "df -h" shows the backup disk filling up to nearly 1,2
TB. But after RSync has
finished, there are only 3.7 GB on the backup disk.
System:
Linux nas 2.6.37-gentoo-r4 #1 SMP Tue May 3 19:54:31 CEST 2011
x86_64 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel
2010 Sep 15
1
running 'make' failed during vignette creation ('R CMD build') on Windows
Hi,
This is a follow-up to the problem reported here:
https://stat.ethz.ch/pipermail/r-devel/2010-September/058460.html
After I updated R-2.12 to 2010-09-13 r52905 on the Bioc build system,
some of the packages that have a Makefile in <pkg>/inst/doc still
don't build on Windows. For example, 'R\bin\R.exe CMD build adSplit'
gives:
* checking for file
2005 Dec 10
0
Wine - DX app - black screen
Hi
Just trying to get Your attention again ;]
I'm still trying to launch SEF2000 on my wine, this time I got some
debugging info on the case.
I launch it from the c:\did\PROGRAM directory (I moved it so to try and
keep out errors with bad dirname, spaces etc, but as tested on a
windows, it works so too) with:
export LC_ALL=C
export LANG=C
export WINEDEBUG=err+all,warn+all,fixme+all
wine
2013 Dec 08
2
How to evaluate sequence of strings like this
Hello Dear R community,
This is my problem. I have a data set (dataframe) called "mydat". It consist of 3 numerical variable. They are Centrecode, FSUSN and Round. I want to create unique ID by combining these 3 variables.
Follwing commands gives me what I need.
mydat1 <- paste(mydat$Centrecode, mydat$FSUSN,mydat$Round,sep="")
newds <- data.frame(mydat1)
For a