similar to: Need to abstract changing name of column within loop

Displaying 20 results from an estimated 120 matches similar to: "Need to abstract changing name of column within loop"

2004 Nov 30
3
Relative subscripting
Hi! I'm trying to do the following. I have monthly a dataset with, among other things, "marketcap", and "return". I want to multiply return by the marketcap of the previous month. How do I do this? In STATA (which I have used frequently in the past) I would simply use an expression of the form return[_n]*marketcap[_n-1] I believe they call this relative
2020 Jul 15
2
read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2
Hi, I am trying to download some data using read.csv and it works perfectly in RStudio and fails in the R console in the terminal in Ubuntu 18.04 after upgrading from R 3.6.3 to 4.0.2. Before upgrading this worked in the R console in the terminal also without any issues. Why would that be? How to fix this? Below please find R code output and sessionInfo(). *Works in RStudio* >
2008 Aug 20
1
How to send Html using SQL Server db mail
All, I have a variable called `go` and it has a single quote in the name column of line 47 that I am trying to get rid of. I have tried using gsub, but I cannot get the syntax correct to tell R to remove the ' (single quote). > go[47,] gvkey Symbol Name Rank MarketCap MemoDate Action Analyst Reason SharesHeld 75 065105 BJ BJ'S WHOLESALE CLUB INC 0.9579
2020 Jul 16
2
read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2
On 7/15/20 1:35 PM, Dirk Eddelbuettel wrote: > On 15 July 2020 at 16:16, Sam H wrote: > | I am trying to download some data using read.csv and it works perfectly in > | RStudio and fails in the R console in the terminal in Ubuntu 18.04 after > | upgrading from R 3.6.3 to 4.0.2. Before upgrading this worked in the R > | console in the terminal also without any issues. > | > |
2020 Jul 15
0
read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2
On 15 July 2020 at 16:16, Sam H wrote: | I am trying to download some data using read.csv and it works perfectly in | RStudio and fails in the R console in the terminal in Ubuntu 18.04 after | upgrading from R 3.6.3 to 4.0.2. Before upgrading this worked in the R | console in the terminal also without any issues. | | Why would that be? How to fix this? | | Below please find R code output and
2010 Mar 05
2
Selecting rows of a matrix based on some condition on the columns
The data set consists of two sets of matrices, as labelled by the columns, T's and C's. > xy x T1 T2 T3 T4 T5 C1 C2 C3 C4 C5 [1,] 50 0.00 0.00 33.75 0.00 0.00 0.00 36.76 0.00 35.26 0.00 [2,] 13 34.41 0.00 0.00 36.64 32.86 34.11 35.80 37.74 0.00 0.00 [3,] 14 35.85 0.00 33.88 36.68 34.88 34.58 0.00 32.75 37.45 0.00 [4,] 33 34.56
2010 Jan 04
1
log-normal overlay
Hello, Using the following lines of code, I created the following graph:
2010 Jan 04
1
log normal overlay
Hello, Using the following lines of code, I created the following graph:
2012 Dec 15
2
troubles reading a text file
Dear R experts, For quite some time I have been trying to solve a mistery of reading a seemingly trouble-free text file. The data is temperature reconstruction arranged as a huge grid, preceded by seven "header lines" (which you see better if file is opened in Firefox or Chrome). This is the data (gridded temperature reconstruction)
2011 Dec 15
1
How to open files that contain "0"
Hi all, How can I set open files that contain values of Zero =0? These are valid values for the parameters I need to evaluate. I have tried CSV and tab formats. Trying XL Connect and/or XLConnectJars dies not seem to work to open Excel files so I am at a loss on how to get the data into a DF. Sample of data with 0 values: Filename Dur TBC Fmax Fmin Fmean Fc S1 Sc Pmc g8221843.13#
2010 Jul 26
1
Is there a function to interdigitate two columns?
Hello List Inhabitants: I don?t know what this operation is called or if there is a function that does it automatically, hence I seek your help! If I divide a large data collection tasks between two students, and I have a master list of samples, but one student records some of the values, and the other student the remainder, I need to get the two sets of student measurements into one column.
2006 Oct 23
3
Unicall Installation
Hi, Could anyone knows what went wrong with the error below result of installation of libsupertone. [root@asterisk1 latest]# tar xvf libsupertone-0.0.2.tar libsupertone-0.0.2/ libsupertone-0.0.2/AUTHORS libsupertone-0.0.2/Makefile.am libsupertone-0.0.2/COPYING libsupertone-0.0.2/config/ libsupertone-0.0.2/config/ltmain.sh libsupertone-0.0.2/config/missing libsupertone-0.0.2/config/install-sh
2016 Aug 22
1
CentOS 7, memory hungry (2.5GB) without user and heavy services running
Hello, The last weekend, the VM with CentOS 7 (kernel-3.10.0-327.28.2.el7.x86_64) was running with 2.5GB of used memory, but without users connected, and heavy services running. Three minutes after reboot, the o.s. is running with 114MB used. ?Why the 62% of memory is used if the o.s. does not have an intensive load? top sorted by memory: top - 12:55:34 up 8 days, 21:41, 1 user, load
2009 Sep 16
2
[LLVMdev] FYI: Phoronix GCC vs. LLVM-GCC benchmarks
2009/9/16 Olivier Meurant <meurant.olivier at gmail.com>: >         Average 13836499.46     12447973.17     1388526.29      10.03 >         Standard deviation      53189.13        515638.56 > 522400.98       3.77 That was pretty much what I was expecting from the article... numbers. It doesn't matter who's best, you can't be best in all areas, but profiling must be
2006 Mar 24
3
R compiler for .Net CLR
I am currently working on a project that involves using R and .Net. We're having performance issues with R, and we're wondering if there is a way to get around the R interpreter, particularly by compiling R directly for the .Net CLR? We're wondering if there is any initiatives to build such a compiler. Thanks, Leo [[alternative HTML version deleted]]
2015 Mar 17
5
Domain controller in a chroot
Le 17/03/2015 12:40, Peter Serbe a ?crit : >> "is it feasible/are there any caveat" > Baseline is: not feasible. > The baseline is: only one samba per box. > You need to different IPs, which operate > independently from each other, as You can't > move the ports, where Your daemons are listening. > You would also need different daemons listening > on these
2016 May 25
1
Slow RAID Check/high %iowait during check after updgrade from CentOS 6.5 -> CentOS 7.2
On 2016-05-25 19:13, Kelly Lesperance wrote: > Hdparm didn?t get far: > > [root at r1k1 ~] # hdparm -tT /dev/sda > > /dev/sda: > Timing cached reads: Alarm clock > [root at r1k1 ~] # Hi Kelly, Try running 'iostat -xdmc 1'. Look for a single drive that has substantially greater await than ~10msec. If all the drives except one are taking 6-8msec, but one is very
2013 Jun 01
3
[LLVMdev] Polyhedron 2005 results for dragonegg 3.3svn
Hi Jack, On 29/05/13 22:04, Jack Howarth wrote: > On Wed, May 29, 2013 at 03:25:30PM +0200, Duncan Sands wrote: >> Hi Jack, I pulled the loop vectorizer and fast math changes into the 3.3 branch, >> so hopefully they will be part of 3.3 rc3 (and 3.3 final!). It would be great >> if you could redo the benchmarks rc3. >> > > Duncan, > As requested, appended
2006 Apr 27
2
summary(lm(x~y)) difference between R-2.2.1 and R-2.3.0
Hi [macOSX 10.4.6; R-2.3.0] I have encountered a difference in behaviour between R-2.2.1 and R-2.3.0 when performing a linear model. Transcript follows for R-2.3.0 (R-2.2.1 worked as expected). How to make R-2.3.0 perform as R-2.2.1 did? > dput(x) c(29.13, 29.88, 30.09, 29.99, 29.74, 29.64, 29.65, 29.7, 30.04, 29.89, 29.96, 29.65, 28.76, 28.41, 28.38, 29.55, 29.76, 29.75, 29.84,
2010 Oct 13
2
Rmysql - dbWritetable
Dear Rusers, I am trying to feed my database with data from a file. But since my file (2010101000.txt) there`s no headers I am facing problem because the result data.frame is not separated my columns. How could I set variables names for each columns in *dbWriteTable*? I have tried the command below but I don`t know how to fill the *field.type*option. dbWriteTable(con, "b20101010",