similar to: Fill dataframe from a table according to a criteria

Displaying 20 results from an estimated 100 matches similar to: "Fill dataframe from a table according to a criteria"

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 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 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 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
2012 Jun 08
2
Percent of a given subset
How would I find the Percent of FuelTypeNum within the Band given AvailableMW? example: type 1 is 1% of PB0 type 2 is 54% of PB0 type 4 is 4% of PB0 type 5 is 42% of PB0 Note: the Bands and fuel types are not always constant. Data: FuelTypeNum Bands AvailableMW AvailableMWNewFormat 1 PB0 185319 185.319 2 PB0 18352000 18352 4 PB0 1338785 1338.785 5 PB0 14189756 14189.756 2 PB1
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
2012 Jun 06
5
ggplot incorrect legend
How do I create a legend with ggplot? I think should be getting the FuelTypeNum in the legend. Plot: http://r.789695.n4.nabble.com/file/n4632471/Rplot.jpeg My code is: ggplot(data=tempTable, aes(x=Bands8, y=SubPercent, fill=FuelTypeNum)) + geom_bar(position="stack", stat="identity") + scale_colour_hue('my legend', breaks = levels(tempTable$FuelTypeNum),
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
2011 Jan 20
4
How to reshape wide format data.frame to long format?
Dear list, I need to convert this data.frame > names(codesM) [1] "key" "AMR.pa1.M" "AMR.pa2.M" "AMR.pa3.M" "AMR.pa4.M" [6] "AMR.pa5.M" "AMR.pa6.M" "AMR.pa7.M" "AMR.pa8.M" "AMR.pa9.M" [11] "AMR.pa10.M" "AMR.ta1.M" "AMR.ta2.M" "AMR.ta3.M"
2009 Nov 26
1
Arrhenius Plot 2 with lattice
Hello, sorry for incomplete code... with this I read the file and calculate my stuff. I have a plenty of them 80-300K every 5 Kelvin. I start with 79K, 80K...300K test<-read.table("T300_both.txt",header=FALSE,sep="") RH2<-c(RH2,2.5e7*.32e-4/100e-6/5100*(test$V3[c(2)]-test$V3[c(1)]+test $V3[c(4)]-test$V3[c(3)])) n2<-c(n2,-1/(RH2[c(46)]*1.60217e-19))
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
2009 Jul 15
0
Fwd: DLLs
Thanks for your help with this problem about dynamic linked libraries. I thought I had it solved, but apparently not. Below is a small piece of Pascal code that I compile into a library. When I load the library using dyn.load R becomes very unstable. The Mac GUI crashes in all kinds of situations --even moving a window can sometimes crash it. Running from the command line (I thought the
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
2010 Sep 03
2
RFC: Lazy syntax for paragraphs, blockquotes and lists
Hi everybody, it was requested that kramdown (a Markdown parser in Ruby, see <http://kramdown.rubyforge.org>) supports the lazy syntax of Markdown. So I sat down, thought about it, skimmed through the Markdown ML on issues regarding lazy indentation as done with Markdown and now I have some rough idea on how to do this in kramdown. First: I'd like to say that there is no way to satisfy
2008 Apr 21
9
3w-xxxx / 3ware 8006-2LP corruption issues using Xen kernel
Hi, At the time of writing this mail, a few days ago, I couldn''t access the lists, so my apologies if this mail is received duplicate. I recently bought a new server with a 3Ware 8006-2LP controller to run Xen on a Debian linux distribution: - Server: ASUS RS120-E4/PA4 - Debian Release: etch - Architecture: 32bit / 686 - Memory: 8 GB - Disks: 2x Hitachi HDT725050VLA360 - Controller:
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