Displaying 20 results from an estimated 4000 matches similar to: "comma separated format"
2010 Nov 10
5
arrays of arrays
Hi All,
I want to have an array/ matrix that looks this
x<- 0 0 1 1
1 3 5
4 4
7 -1 8 9 10 6
I hope this makes sense. So basically if I want x[1,3] it will access 0 and
similarly x[4,2], -1.
Thanks in advance,
Sachin
p.s. sorry about the corporate notice.
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
2010 Nov 12
2
switching only axis off in plot
Hi R,
In the following code my x-axis is formatted in month format. Which Im
happy with. The y-axis is what I want to re-format with something else. My
question is, is it possible just to switch off the xaxis in plot function
(see below). If not how do you get the months to show up as FEB-YYYY,
MAR-YYYY and so on, so I could fit a label on x-axis.
Thanks,
Sachin
p.s. sorry about corporate
2010 Oct 13
2
drilling down data on charts
Hey all,
Suppose a=b^2 for starters. I want to be able to create a graph that
displays a initially and if i was to click on 'a' to show 'b' on the chart
itself. Does anyone know if this is possible in R?
Also as an extension (not necessary as yet) to output the above into a
'html' file.
Thanks,
Sachin
--- Please consider the environment before printing this email ---
2010 Nov 09
1
date conversion and plot
Hi All,
I have a date in the format of yymmdd (without any of the backslashes, eg.
100731). How do I convert this into a Rdate and plot it? I don't want the
number of days from 1970's showing up as my date (Its the date I require).
Thanks,
Sachin
p.s. sorry about the corporate notice I can't remove it.
--- Please consider the environment before printing this email ---
Allianz -
2010 Oct 31
1
parallel for loop
Hi all,
Just following on from a previous thread (for loop). Is there a parallel
'for' loop like matlab (parfor maybe?). I know there was a Nvidia GPU
version for blas somewhere. But is there a CPU or a GPU version of the for
loop?
Thanks,
Sachin
p.s. sorry about the corporate notice below: cant get rid of it. Don't have
other mail client access at the office :(
--- Please consider
2010 Nov 11
1
trouble with plotting data- possible bug?
Hi all,
When I write out some values and then use 'plot' and 'lines' respectively I
can get R to plot me two lines. However when I get the data from a csv file
and run it I only manage to get one line running (whichever was invoked
first). The sample files are attached below and I've reproduced the code
below with the suspicious part marked as #??? (not even sure if thats
2010 Nov 11
1
plot options including formatting axes
Hi All,
Currently my plot shows the y-axis in scientific notation (1e07 and so on).
I want to be able to display this in dollars such that it shows $10,000,000
(including the commas). How do I do this.
Also with the xlabel and ylabel. I've specified: 'title('Cash vs
Time',xlab='Period',ylab=''); Im hoping that this will also not display
anything on the y-axis.
2010 Nov 11
4
Troubleshooting sweave
Hi All,
I've reproduced the example from Prof. Friedrich Leisch's webpage. When I
write sweave("Example-1.Snw") OR sweave("Example-1.Rnw"), (yes, I renamed
them). I get the following error:
Writing to file example-1.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
Error in library(ctest) : there is no package called 'ctest'
Also while
2010 Oct 08
3
Running R on a server
Hi All,
I am trying to run R scripts on a server rather than my own machine. The
biggest reason being that the data can be 3GB+; more than my RAM can
handle. Anyway is there a way to do this.
I am trying to find a SAS alternative.
In SAS you can do (keyword) rsubmit; and get things running remotely on a
server. Is there something similar on R. Couldn't find a comprehensive
answer online.
2010 Oct 24
2
How to simulate from an estimated density
Hi, dear fellows,
I was wondering how can I simulate from an estimated density function? I
used my training data set and already have estimated density values at some
fixed points. I plan to simulate some data from such estimated density and
compare them to my validation data set. Anyone can help out is really
appreciated. Thanks.
Jay
--
View this message in context:
2010 Nov 14
1
cannot see the y-labels (getting cut-off)
Hi All,
When I run the following code, I cannot see the entire number. As opposed
to seeing 1,000,000,000. I only see 000,000 because the rest is cut off.
The cex option doesn't seem to be doing anything at all.
y<-seq(1e09,5e09,1e09);
plot(1:5,y,ylab='',yaxt='n' );
axis(2, at=y, labels=formatC(y,big.mark=",",format="fg"),las=2,cex=0.1);
Any thoughts?
2010 Oct 26
5
cube root of a negative number
Hi,
This might be me missing something painfully obvious but why does the cube root of the following produce an NaN?
> (-4)^(1/3)
[1] NaN
>
As we can see:
> (-1.587401)^3
[1] -4
Thanks!
Greg
2010 Nov 12
1
font family in R
Hi All,
I've been looking around (maybe not extensively) but I couldn't find any
documentation on the list of fonts thats useable with R.
Im trying to change the font of the title, seems like mtext is the only way
so far, which can actually write on top of each other depending on the
lines:
plot(1:5,1:5);
mtext("Title",side=3,cex=3.5,line=1);
mtext("Sub
2010 Oct 20
3
loading workspace- getting annoying
I stupidly decided to save my last workspace (a large dataset) and every
time I open R it loads it back in. Can I stop this? Also how do you clear
variables.
Thanks,
Sachin
--- Please consider the environment before printing this email ---
Allianz - General Insurance Company of the Year 2009+
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by
2010 Oct 20
1
Accessing table elements and escape characters
Hi All,
Are there any escape characters that I should be aware of when using
table.read? I don't have any '#' characters in this table.
I get the error:
A<-read.table("P:/temp.csv",header=TRUE, sep=",");
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines,
na.strings, :
line 11018 did not have 85 elements
but when i open it in excel everything is
2010 Dec 07
1
getting R to download data
Hi All,
Is it possible to write a program such that it downloads a csv from a given
web address? Would be great if this could be done at a particular time
during the day as well. Say 9AM monday-friday.
Incase you are curious Im just trying to analyse some stocks data.
Thanks,
Sachin
p.s. sorry about corporate notice
--- Please consider the environment before printing this email ---
Allianz -
2010 Nov 25
3
How to "bin"/average" time points?
Dear all,
I am pretty new to R only having an introduction course, so please bare with
me. I am doing my PhD at The Max Planck Institute of Immunobiology where I
am analyzing some calorimetry data from some mice.
I have a spreadsheet consisting of measurements of the respiratory exchange
rate at different time points measured every 9 minutes over some days.
My goal is "bin"/average the
2007 Apr 12
3
Method dispatch for print() in package its
Dear all,
in the package its the print() method does not seem to correctly work in all circumstances:
> selectMethod(print, "its")
Method Definition:
function (x, ...)
{
print(x@.Data <mailto:x@.Data> , ...)
}
<environment: namespace:its>
Signatures:
x
target "its"
defined "its"
> fundPME.lst[[1]]$irr
An object of
2007 Aug 03
2
Problem with making dll under Windows
Dear all,
I have problems to compile a DLL for Windows XP with R version 2.5.1 (2007-06-27).
See output below:
C:\AZ_DATEN\C, C++\BE_speedup>R CMD SHLIB dmypow.c
Goto undefined subroutine &DynaLoader::bootstrap_inherit at C:\Programme\R\R-2.5
.1\share\perl/XSLoader.pm line 80.
Compilation failed in require at c:/Programme/Perl/lib/IO/Handle.pm line 262.
BEGIN failed--compilation aborted
2007 Apr 19
2
rbind() of factors in data.frame
Dear all,
I would like to inquire, if it is a desired feature that the combination with rbind() of two data frames with factors columns does not sort the factors levels of the combined data frame.
> str(rbind(data.frame(a = factor(c(4, 3))), data.frame(a = factor(c(2, 1)))))
'data.frame': 4 obs. of 1 variable:
$ a: Factor w/ 4 levels