Displaying 20 results from an estimated 8000 matches similar to: "aggregate, by, *apply"
2010 Aug 06
3
How to apply apply?!
guRus
I have say a dataframe, d and I wish to do the following:
1) For each row, I want to take one particular value of the row and multiply
it by 2. How do I do it. Say the data frame is as below:
OPEN HIGH LOW CLOSE 1931.2 1931.2 1931.2 1931.2 0 0 0 999.05 0 0 0 1052.5
0 0 0 987.8 0 0 0 925.6 0 0 0 866 0 0 0 1400.2 0 0 0 754.5 0 0 0 702.6 0 0 0
653.25 0 0 0 348 0 0 0 801 866.55 866.55
2010 Sep 08
3
Saving/loading custom R scripts
Hi,
How does R automatically load functions so that they are available from the
workspace? Is it anything like Matlab - you just specify a directory path
and it finds it?
The reason I ask is because I found a really nice script that I would like
to use on a regular basis, and it would be nice not to have to 'copy and
paste' it into R on every startup:
2010 Aug 05
3
How to extract se(coef) from cph?
Hello,
I am modeling some survival data wih cph (Design). I have modeled a predictor
which showed non linear effect with restricted cubic splines. I would like to
retrieve the se(coef) for other, linear, predictors. This is just to make nice
LateX tables automatically. I have the coefficients with coef().
How do I do that?
Thanks,
David Biau.
[[alternative HTML version deleted]]
2010 Oct 03
4
Programmaticly finding number of processors by R code
Dear List
Sorry if this question seems very basic.
Is there a function to pro grammatically find number of processors in
my system _ I want to pass this as a parameter to snow in some serial
code to parallel code functions
Regards
Ajay
Websites-
http://decisionstats.com
http://dudeofdata.com
Linkedin- www.linkedin.com/in/ajayohri
2010 Sep 15
3
Creating publication-quality plots for use in Microsoft Word
Hi everyone,
I am trying to make some publication-quality plots for use in Microsoft
Word, but I am having trouble creating high-quality plots that are supported
by Microsoft Word.
If I use the R plot function to create the figure, the lines are jagged, and
the picture is not of high quality (same with JPEG(), TIFF(), and PNG()
functions). I have tried using the Cairo package, but it distorts
2010 Aug 24
2
How to remove rows based on frequency of factor and then difference date scores
Hello-
A basic question which has nonetheless floored me entirely. I have a
dataset which looks like this:
Type ID Date Value
A 1 16/09/2020 8
A 1 23/09/2010 9
B 3 18/8/2010 7
B 1 13/5/2010 6
There are two Types, which correspond to different individuals in
different conditions, and loads of ID labels (1:50)
2010 Nov 15
5
How to Read a Large CSV into a Database with R
Hi, I'm working in R 2.11.1 x64 on Windows x86_64-pc-mingw32. I'm trying to
insert a very large CSV file into a SQLite database. I'm pretty new to
working with databases in R, so I apologize if I'm overlooking something
obvious here.
I'm trying to work with the American Community Survey data, which is two
1.3GB csv files. I have enough RAM to read one of them into memory,
2011 May 21
1
'apply' with additional class variable
Dear R gurus,
I'm trying to solve what I assume is a fairly simple problem, but I'm having trouble finding the proper approach. I have a matrix where each column is some object (e.g. a car) and each row is a numeric measurement of a feature of said object (e.g. horse power, top speed, etc.). Let's also suppose that I know what make the car is (e.g. toyota, ford, etc.), stored in a
2010 Dec 01
1
Font family not found in Windows font database
Dear R Gurus,
I have a fairly simple problem, but I haven't been able to find the answer on 'the google' or in the r-help archives.
I am generating plots on both Windows and OS X where I need to guarantee that the font used is Arial. In my plot command I specify 'fontfamily="Arial"'. The problem is that on Windows I'm getting the following warning:
Warning
2011 Sep 06
1
write.matrix row names vs sink vs capture.output
Dear R gurus,
I am trying to write several large matrices (~ 1GB) to separate files. I have learned that write.table is simply too slow for this task and was attempting to use write.matrix, but write.matrix does not have the ability to include row names in the output. Anyone know why that's the case? I've seen a thread stating that write.matrix is the way to go for large prints to files,
2010 Oct 31
0
Fwd: ForestPlot or similar
> From: Abhijit Dasgupta <adasgupta@araastat.com>
> Date: October 31, 2010 1:30:02 AM EDT
> To: Matt Shotwell <shotwelm@musc.edu>
> Subject: Re: [R] ForestPlot or similar
>
> I just did something very similar using ggplot's pointrange geom. In the following, I'm plotting hazard ratios, for which the nominal value is 1 and not 0. x has 5 columns: drug, hr,
2004 Nov 18
3
[LLVMdev] A few beginner level questions..
1. If we run a few passes in a sequence ..is the bytecode file
transformed after each pass in sequence i.e
if we have
a) opt -pass1 -pass2 -pass3 < in.bc > out.bc
b)opt -pass1 -pass2 < in.bc > tmp.bc
opt -pass3 < tmp.bc > out.bc
are the above two equivalent ?
what I basically want is to run my pass on an optimised bytecode , so
should i optimize it and get a new bytecode
2007 Apr 18
2
[patch 3/8] Allow a kernel to not be in ring 0.
In-Reply-To: <20060803002518.190834642@xensource.com>
On Wed, 02 Aug 2006 17:25:13 -0700, Jeremy Fitzhardinge wrote:
> We allow for the fact that the guest kernel may not run in ring 0.
> This requires some abstraction in a few places when setting %cs or
> checking privilege level (user vs kernel).
I made some changes:
a. Added some comments about the SEGMENT_IS_*_CODE() macros.
2007 Apr 18
2
[patch 3/8] Allow a kernel to not be in ring 0.
In-Reply-To: <20060803002518.190834642@xensource.com>
On Wed, 02 Aug 2006 17:25:13 -0700, Jeremy Fitzhardinge wrote:
> We allow for the fact that the guest kernel may not run in ring 0.
> This requires some abstraction in a few places when setting %cs or
> checking privilege level (user vs kernel).
I made some changes:
a. Added some comments about the SEGMENT_IS_*_CODE() macros.
2006 May 26
1
Not able to make any calls
Hi All,
I have registered "abhijit" for SIP in asterisk Server.
I am able to register my softphone (SJPhone) to the server using the
name "abhijit".
But whenever I try to make any calls I am gettinh the following error
message:-
*CLI>
-- Registered SIP 'abhijit' at 172.20.28.85 port 5060 expires 120
May 26 07:34:52 NOTICE[2761]: pbx.c:1738 pbx_extension_helper:
2004 Aug 06
2
libshout2, ices0-3 and ices2 on Win32. Announce
Hi Abhijit
I can't answer your questions but I would be very interested in a fully
working binary of Ices2 for Win32 once it's ready. Thanks for the
effort.
Best regards,
Ross Levis
====================================
StationPlaylist.com
http://www.stationplaylist.com
Low-cost music scheduling, live assist & automation software.
====================================
Abhijit
2010 Sep 07
3
Something similar to layout in lattice or ggplot
Hi,
Is there a function similar to the layout function in base graphics in
either lattice or ggplot? I'm hoping someone has written a function
wrapper to the appropriate commands in grid that would make this easier :)
Abhijit
[[alternative HTML version deleted]]
2011 Aug 04
3
source() or OS X Lion?
Dear R Gurus,
I'm seeing some strange behavior that I can't explain. I'm generating a figure for a paper and I like to save the script (no matter how simple) for future reference. My practice is to write the script and run it using the 'source()' function. What's weird is that the resultant figure is not readable by OS X 10.7.0 (Lion). While trying to figure out what I did
2012 Jan 24
5
Graphic acceleration on pv domU linux
Is there possibility of graphic acceleration on domU pv linux without gfx
passtrough?
I not search 3d high performance for games but possibility of run all DE for
example gnome shell or cinnamon and good performance of normal programs and
video playback?
Thanks for any reply
--
View this message in context:
2004 Oct 05
3
[LLVMdev] help with llvm.
I am interested in implementing a compiler very much like llvm but
with very very modest goals.
I just want to have a intermediate format(machine independent) which
can be used as input/output by different passes.( much like the
bytecode of llvm).
The only thing is I want it to be much simpler compared LLVM, say only
a very few basic optimizations. Other optimizations could be written
and