Displaying 20 results from an estimated 4000 matches similar to: "Accessing table elements and escape characters"
2010 Nov 11
2
comma separated format
Hi All,
I'm trying to create labels to plot such that it doesn't show up as
scientific notation. So for example how do I get R to show 1e06 as
$1,000,000.
I was wondering if there was a single function which allows you to do that,
the same way that as.Date() allows you to show in date format on a plot.
Thanks,
Sachin
--- Please consider the environment before printing this email --- 
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 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 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 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 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 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 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 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 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 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 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
2013 Jun 26
3
match rows of R
Hi all,
What would be an efficient way to match rows of a matrix to a vector?
ex:
m<-matrix(1:9, nrow=3)
m     [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    9
#################################
which(m==c(2,5,8))        # I want this to return 2
######################
Thanks,
Sachin
	[[alternative HTML version deleted]]
2013 Sep 13
2
xtable use plus minus
I am using a similar dataset to the following:
a= c("Fruits", "Adam","errorA", "steve", "errorS",
     "apples", 17.1,2.22, 3.2,1.1,
     "oranges", 3.1,2.55, 18.1,3.2 )
a_table=data.matrix(t(matrix(a,nrow=5)))
I would like to plus minus every second column starting from errorA (using
xtable/ hmisc)
example output (ignoring
2012 Aug 13
4
if else elseif for data frames
Hi all,
It seems like I cannot use normal 'if' for data frames. What would be the
best way to do the following.
if data$col1='high'
    data$col2='H'
else if data$col1='Neutral'
    data$col2='N'
else if data$col='low'
   data$col2='L'
else
   #chuch a warning?
Note that col2 was not an existing column and was newly assigned for this
2012 Aug 14
4
pass by reference
Hi all,
I want to do the following:
data<-data.frame(col1=c(1,2,3,4,5))
getcol2<-function(data){
    data$col2[data$col1<=2]="L"
}
getcol2(data)
Unfortunately in the above col2 does not appear in the final data. So how
would you pass this by reference such that you would get it back?
Thanks,
Sachin
	[[alternative HTML version deleted]]
2009 Jan 14
1
Memory use
Dear R-help list,
I am just trying to increase my memory for R, but for some reason I cannot really increase the memory size as much as I would like. I have 3 GB of RAM on a Windows XP (R 2.8.1)
> memory.size()
[1] 879.4667
> memory.size(T)
[1] 1162.75
> memory.limit()
[1] 3072
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 421697 11.3 1476915 39.5 1476915 39.5
Vcells
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