Displaying 19 results from an estimated 19 matches similar to: "Caculate first difference from a dataframe; write a simulation"
2009 Aug 05
1
writing a simulation
No its not an or condition. Please see the changed attachment.
Many thanks for your help.
Regards
Meenu
On Wed, Aug 5, 2009 at 6:36 PM, David Winsemius <dwinsemius at comcast.net>wrote:
>
> On Aug 4, 2009, at 2:12 PM, Meenu Sahi wrote:
>
> Dear R Users
>>
>> I'm writing my first simulation in R.
>> I've put across my problems with a smaller example
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
2019 Jan 25
0
[klibc:update-dash] [SHELL] Optimize dash -c "command" to avoid a fork
Commit-ID: eb90545092a27ae45567f072c1a5912ee41e75ad
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=eb90545092a27ae45567f072c1a5912ee41e75ad
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Thu, 7 Jul 2011 13:58:48 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] [SHELL] Optimize dash
2020 Mar 28
0
[klibc:update-dash] dash: [SHELL] Optimize dash -c "command" to avoid a fork
Commit-ID: a99e81cedacbfaed18e580455969667f2320de5e
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a99e81cedacbfaed18e580455969667f2320de5e
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Thu, 7 Jul 2011 13:58:48 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:10:37 +0000
[klibc] dash: [SHELL] Optimize
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.
2006 Mar 14
2
Maximum likelihood
Hello all,
I'm trying to calculate the Maximum likelihood of individuals to get the
ancestry.
I mixd 3 populations 15 generations in proportion of 20% 20% 60% when each
population
sorce have diferent genome (0 1 and 2) with frequencies for each one.
So now i have individuals looks like 0 0 2 1 1 2 0 ..... and i don't now how
to calculate the
mle although i try to figure out from the
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
2012 Jun 28
1
undefined S4 class in parallel computing at snowfall
Dear All,
I have a question of how to export S4 class specification to
clusters/workers in parallel computing. The package I used is snowfall. The
problem is reproducible as follows. Any hint is greatly appreciated.
Edwin Sun
=== begin ===========
library(snowfall)
sfInit(parallel = TRUE, cpus = 2)
setClass("catt", representation(aa = "numeric"))
setClass("dogg",
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
2020 Mar 28
0
[klibc:update-dash] dash: eval: Reset handler when entering a subshell
Commit-ID: 3f314ab5fe4a08b6e8d0ce34465298ba20f90def
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=3f314ab5fe4a08b6e8d0ce34465298ba20f90def
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 3 Mar 2019 21:57:50 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: eval: Reset
2004 Jul 30
0
Help:how many bandwidth are borrowed in HTB?How to caculate!
Hi,All
I use HTB to control traffic.Here is my script:
/usr/sbin/tc qdisc del dev nas0 root
/usr/sbin/tc qdisc add dev nas0 root handle 1:0 htb default 60
/usr/sbin/tc class add dev nas0 parent 1:0 classid 1:1 htb ceil 896kbit rate 896kbit prio 0 burst 60k
/usr/sbin/tc class add dev nas0 parent 1:1 classid 1:10 htb ceil 896kbit rate 537kbit prio 1 burst 60k
/usr/sbin/tc class add dev
2005 Jul 28
12
Can you caculate with me?
before I accuse somebody to "overbill" I would like you to calculate
with me:
Rate: 0.0189 for calling Taiwan via NuFone
Duration: 930 seconds
Lets vote for the answers: 0.7269 or 0.2929 ???
bye
Ronald Wiplinger
2010 Jan 02
4
caculate the frequencies of the Amino Acids
may some one please help me to sort this out, i am trying to writ a R code
for calculating the frequencies of the amino acids in 9 different sequences,
i want the code to read the sequence from external text file, i used the
following code to do so:
x<-read.table("sequence.txt",header=FALSE)
then i defined an array for 20 amino acids as following:
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
2012 Jul 13
3
Column create and Update using function
Hi,
here i have a Max and Min values
Min <-3
Max <-6
and also a matrix like this,
ABC XYZ PQR
------ ------- -------
2 4 3
5 4 8
7 1 3
In this i need to check each particular column values are between Max and
Min value.
If the coulmn value not coming between Max and
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone,
When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE
to y then I cannot boot Xen; there is a crash. If I turn
CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has
booted, xenpm works and gives some sane output, see below. I have
tested this with kernels 3.2 to 3.4.6.
Is it impossible to use INTEL_IDLE with Xen? If this is a known issue
then maybe
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone,
When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE
to y then I cannot boot Xen; there is a crash. If I turn
CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has
booted, xenpm works and gives some sane output, see below. I have
tested this with kernels 3.2 to 3.4.6.
Is it impossible to use INTEL_IDLE with Xen? If this is a known issue
then maybe