Using R" and it i must
have confused it for the weights(e.g. varIdent) where there are indeed
group(strata) specific estimates.
Is there a way to include correlations and have group specific estimates?
Regards
Saptarshi
__
R-help@r-project.org ma
telemStats() should return to the prompt and the
print in telemStats should not appear
On Mon, Mar 16, 2015 at 4:02 PM, David Winsemius wrote:
>
> On Mar 16, 2015, at 3:08 PM, Saptarshi Guha wrote:
>
>> Hello,
>>
>> I would like a function X to return to the place that c
printed")
}
I looked into callCC and signals but dont think i understood correctly.
Any hints would be appreciated
Kind Regards
Saptarshi
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-
form?
I can sample from the data according to weights given by 'n' but i am
curious if there is something that can use all the data when given a
structure of this form.
Regards
Saptarshi
[[alternative HTML version deleted]]
__
R-
specify up front the classes rather than the last approach
Regards
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-p
thanks
On Wed, Aug 28, 2013 at 11:58 AM, Greenberg, Jonathan wrote:
> Hi Saptarshi:
>
> There are quite a few parallel mapply's out there -- my recommendation is
> to use the foreach package, since it allows you to be flexible in the
> parallel backend, and you don
Hello,
I find Map to be nice interface to mapply. However
Map calls mapply which in turn calls mapply via .Internal.
Is there a parallel version of mapply (like mcapply) or do I need to write
this myself?
Regards
Saptarshi
[[alternative HTML version deleted
Hello,
Consider the following transcript
> x=NULL
> x$date=10
> x
$date
[1] 10
or
> x=NULL
> x[10]=10
> x
[1] NA NA NA NA NA NA NA NA NA 10
Wouldn't one expect that x remain NULL despite the further additions (i.e
the x$date, x[10]) etc? Is coercing appropriate
location. Without changing the R shell script, how can i
force it read in R_HOME_DIR?
Or maybe i misunderstood the bash source?
(Note, i cannot recompile on target machine)
Cheers
Saptarshi
1. I also realize Rscript will not work (i think path is hard coded in the
source)
Beginning of /usr/lib64/R
-time/
the programmer calls print/cat/message/warning or stop.
Are there hooks i can write code for?
Regards
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
quot; "base"
> boot "boot" "recommended"
> ...
> mgcv "mgcv" "recommended"
> ...
> tools "tools" "base"
> utils "utils" "base"
>
> Bi
Hello,
Is there an R function that tells me the packages that come with R e.g.
c("base","boot","methods","mgcv",...)
Thank you
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org m
thanks much.
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
solve this?
Regards
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide comm
Hello,
[ Sorry, I sent the last email as HTML, this time it's in plain text ]
Suppose my variable,S, (time for something to start) is a skew-normal
distribution [1]. Can glm and mgcv handle this type of distribution for the
dependent variable?
Regards
Saptarshi
[1] http://azzalini.stat.uni
I'm trying to install a package on OS X (Snow Leopard) using the following
command, but instead of respecting the arch directive it install i386. How
can this be resolved?
R --arch=x86_64 CMD INSTALL
* installing to library
â/Library/Frameworks/R.framework/Versions/2.15/Resources/library
should use here).
So my questions are:
1. how do i inspect the extra information that rhwrap is adding to its
return value
2. How do i remove this, so that it behaves like ewrap
Thanks in advance
Saptarshi
__
R-help@r-project.org mailing list
https://
o i inspect the extra information that rhwrap is adding to its
return value
2. How do i remove this, so that it behaves like ewrap
Thanks in advance
Saptarshi
ewrap <- function(co1=NULL,before=NULL,after=NULL){
co <- substitute(co1); before=substitute(before)
j <-
Thanks much.
--
View this message in context:
http://r.789695.n4.nabble.com/Y-axis-label-on-the-right-hand-side-in-lattice-tp4478959p4479614.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat
ylab.right is perfect. However, I am drawing scales on the right axis
(outside) (see code 1).
When ylab.right is set to something it overlaps with the scale labels.
see http://imgur.com/Gs3JS
I seem to have asked the question:
http://tolstoy.newcastle.edu.au/R/e5/help/08/09/1887.html
But the sam
Thanks! Exactly what i need
Saptarshi
--
View this message in context:
http://r.789695.n4.nabble.com/Changing-axis-labels-depending-on-panel-in-lattice-tp4478854p4479368.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r
Hello,
Is there a way to add ylab on the right hand side also (in lattice)?
Different from the left hand side?
Cheers
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
axis.default(side = side, ...))
Is there anything i can do get the information regarding the panel i'm in?
Regards
Saptarshi
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listin
he exponent of the labels on the bottom x-axis.
Without the asTheEconomist, it displays okay. Using TheEconomist, the
top axis disappears. How can i force the top axis to appear?
Thanks for your time
Saptarshi
__
R-help@r-project.org mailing list
ht
Hello,
I would like to write a function where substitute operates on the
parameter, but ...
> Expression = function(o,l) substitute(o, l)
> Expression({x=.(FOO)}, list(FOO=2))
o
How do i get substitute to work on the contents of o.
Regards
Sap
Hello,
I'm trying to use rjson to parse a JSON object. The object can be found here
http://pastebin.com/np0s5hgM
(you'll probably need to add quotes around the content)
fromJSON returns the error
glibc detected home/sguha/lib64/R/bin/exec/R: realloc(): invalid next
size: 0x0209e210 **
doesn't change things either.
So i guess one cant run R on a system unless it's been installed?
1. I can't install R on the compute nodes using ./configure
2. All nodes do have the same architecture
3. I would like to stick to the 'shipping' app
n outside the dotted red border?
Thank you
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hello,
I should see how to mirror a google group (if indeed possible).
There are few things stopping from having RHIPE work on the remote
while the client sends queries from a Windows client.
But as of now, it does not work.
Regards
Saptarshi
On Fri, Mar 18, 2011 at 7:50 AM, XiaoboGu wrote
ttern <- readLines(url("http://pastebin.com/raw.php?i=s7VT0r5K";),
warn=FALSE)
test <- readLines(url("http://pastebin.com/raw.php?i=rbAvR2dK";),warn=FALSE)
regexpr(pattern, test, perl=TRUE)
Thanks
Saptarshi
On Thu, Mar 17, 2011 at 12:12 AM, Allan Engelhardt wrote
t;)
test <- readLines("/tmp/a.txt")
test
grep(pat,test)
returns integer(0)
The same query works in python via re.match() (i.e does return groups)
Using readLines, the regex is escaped for me. Does Python and R use
different regex styles?
Cheers
Saptarshi
[1]
^(\d{1,3}\.\d
do unserialize( a[ 5:(5+u)] ) but sticking with the connection
would be nicer.
Cheers
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Dirk, thanks.
On Thu, Oct 14, 2010 at 9:42 AM, Dirk Eddelbuettel wrote:
>
> On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote:
> | On 14 October 2010 at 08:49, Saptarshi Guha wrote:
> | | Hello,
> | | I have this script which will be invoked as
> | |
> | | Rscript a.r
Yes, thanks much.
On Thu, Oct 14, 2010 at 9:36 AM, jim holtman wrote:
> ?chartr
>
> Is this what you are looking for?
>
> On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha
> wrote:
>> Hello,
>>
>> Would one use gsub to perform pythons translate?
>>
&
Hello,
Would one use gsub to perform pythons translate?
in python
table = string.maketrans("abc","xyz")
"abc".translate(table)
"xyz"
how does one do this in R?
Thank you
Saptarshi
__
R-help@r-project.org m
from standard input?
Thank you
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Hello,
I take this back, wrong implementation of the experiment.
Sorry for the noise.
Regards
Saptarshi
On Sun, Aug 15, 2010 at 12:22 PM, Saptarshi Guha
wrote:
> Hello,
> I have question about the overhead in lapply.
> x is a list of 3000 lists. Each of the i (1<=i<=3000) l
e(serialize(r,NULL))['elapsed']
}))
> sum(unlist(y))
18.812
> z
user system elapsed
494.144 0.041 494.247
So, the entire lapply takes ~26 times longer than the sum of the
individual operations.
Have i missed something?
Regards
Saptarshi
__
5))
I would like a single curve, the following example displays two curves.
qqmath(~x,groups=f,data=x,distribution=qunif,f.value=pp)
Thank you
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do re
suitably small - i notice
you mention that each region is 10-20 GB and you want to compute on
/all/ i.e you need all of it in memory. If so, Rhipe cannot help you.
Regards
Saptarshi
On Thu, Feb 4, 2010 at 8:27 PM, Vadlamani, Satish {FLNA}
wrote:
> Folks:
> I am trying to read in a larg
uot; ( [<- x 1 2 ) )
If indeed the parse tree in (A) is correct, the operation ([ x 1)
returns the value of x[1], how then does
the <- operator know to change the 1st element of x ? Does the <-
implementation inspect the its 1st argument (e.g if it sees
[ call, it instead chan
Hello,
I would like to compose a series of functions each taking one
argument. Let us assume the values returned by the functions are
contained within the domains.
So
b<-function(r) r[-1]
compose("b","b")
b(b(x))
This is my solution, is there something succinct ?
Reg
I have no idea why I used the \\, the perils of copy and pasting from
some other package or source .
So, heres the thing, did R regex interpreter change? How come my
export stopped working?
Thank you
Regards
Saptarshi
On Tue, Dec 1, 2009 at 11:28 AM, Romain Francois
wrote:
> You probably j
As a followup, i can do things Package:::rh*, there just no exported.
On Tue, Dec 1, 2009 at 11:18 AM, Saptarshi Guha
wrote:
> Hello,
> I wrote a package, which in the NAMESPACE file exports functions like this:
>
> exportPattern("^\\rh")
>
> On R-2.8 (Linux, 64), upo
unction is rhyper (which is not from my package).
Is there something wrong with my package setup?
Regards
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.o
> })
>
> Duncan Murdoch
>
Thanks, after sending this email, i used substitute, but first eval'ing
the formals (since they are delayed assignments).
I see bquote does this for me.
Regards
Saptarshi
__
R-help@r-project.org mailing list
when eval'd e.g
x <- foo(10)
eval(x)
Error in eval(expr, envir, enclos) : object 's' not found
Q: How do I force a substitution so that the returned expression has the value
of 's' 'hardcoded' in it e.g
> foo(10)
returns
expression({
v <- 10
I have some beginner's questions regarding local, in the docs, it says that
"local evaluates an expression in a local environment".
Q1: why is B different from A? In B, is a<-a+1 getting evaluated
before eval proceeds?
#A
a=0
eval(quote(a<-a+1),new.env())
a # 0
#B
a=0
eval(a<-a+1,new.env())
a #
ading on my part: it is possible to
extend this to serialize functions, expressions, environments and
several other objects.
However that is some time in the future.
Regards
Saptarshi
[1] http://code.google.com/apis/protocolbuffers/docs/overview.html
Download:
http://ml.stat.purdue.edu/rproto_1.0.t
it is possible to
extend this to serialize functions, expressions, environments and
several other objects.
However that is some time in the future.
Regards
Saptarshi
[1] http://code.google.com/apis/protocolbuffers/docs/overview.html
Download:
http://ml.stat.purdue.edu/rproto_1.0.tar.gz
Saptarshi
ening on the other side.
Any help would be appreciated.
Regards
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide c
Thanks to all for the helpful explanation.
Regards
Saptarshi
On Fri, Jul 17, 2009 at 12:42 AM, wrote:
> 'startgiven' is in the environment of your function 'incr' (which is what
> your function 'a' becomes). It might be more transparent to define your
Env, yet the globalenv does not have any
mention of startgiven.
This code was inspired from and old issue of RJournal , but I'm not
sure how this works.
I'm not sure how this works and an explanation would be helpful.
Thank you
Saptarshi
getN <- function(start){
startgiven &
Hello,
On Fedora 8, yum install R , installs R-2.6.
I dont have much experience with yum, how do change the repos(?) to
install R-2.9?
Thank you
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
am using a small instance and
Fedora 8 AMI
Regards
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self
> You've hit on the reason -- representation of NA
>
> src/main/arithmetic.c:157: R_NaInt = INT_MIN;
Aha! Yes, I missed that.
>
> (R-devel seems more appropriate for this question).
Yes, i was not sure.
Thank you
Saptarshi
__
s the maximum (without returning NA) but the
lowest is -2147483647 (-2^31+1)
> as.integer((-2)^31)
[1] NA
So in both Java and C can hold 2^32 different values, but R holds 2^32
-1 different values.
Have I made a mistake? Is there a reason for the difference?
Thank you
S
educe=r,input.folder="X",output.folder="Y")
URL: http://ml.stat.purdue.edu/rhipe
There are some downsides to RHIPE which are described at
http://ml.stat.purdue.edu/rhipe/install.html#sec-5
Regards
Saptarshi Guha
__
R-help@r-project.
fortunately, I
haven't
had the chance to compare with rmpi and snow.
TODO(will appear soon ): another function: rhmr - mapreduce using R.
Regards
Saptarshi Guha
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
http
have preassigned the list in line A0, so I'm guessing there is no resizing
going on, so why does the time increase so much?
Thank you for your time.
Regards
Saptarshi
==code==
rdr <- rhsqreader("~/tmp/pp",local=T,pattern="^p")
rdr <- rhsqstart(rdr)
i <- 1;
h=a
.jclassPath()
does contain an entry to this class.
Moreover, when run at the command line using the *same* classpath, I
don't get any such error messages.
Is there a possible reason why?
Regards
Saptarshi
Saptarshi Guha
__
R-help@r-project.org
quite understand it. What does the
option do and why did I initially run into an error ?
>From man R
--max-nsize
Set max number of cons cells to N
Why should there be a maximum?
Thanks for your time
Saptarshi Guha
__
R-help@r-project.org mail
)
The two figures are not base aligned. I would like them share the same
the baseline and same height, if necessary the paper width and height
can be adjusted
( i tried setting the paper width and height to no avail).
Is the way to base align the two figur
more information and examples please visit this page: http://www.stat.purdue.edu/~sguha/rhipe
.
If anyone would like to contribute to this project, please email me
directly - any help is welcome.
Regards
Saptarshi Guha
__
R-help@r-project.org ma
to this instead of iterating over all objects E
and assigning into .GlobalEnv?
Thank you
Saptarshi
--
Saptarshi Guha - saptarshi.g...@gmail.com
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
Bin(length(x),con=conn,endian="big") #conn opened in binary
But the response on the server side is wrong, eg. 1 is received as
4294967297
How do I then write long across the network from R?
Thank you
Saptarshi
Saptarshi Guha | saptarshi.g
und this?
Regards
Saptarshi
R.version = 2.8
>
> On Nov 30, 2008, at 5:53 PM, Saptarshi Guha wrote:
>
>> Hello,
>> I have some code which generates lattice objects. The function
>> recieves serialized forms of the lattice objects which it
o interpret
[EMAIL PROTECTED]
*** REXPFactory unable to interpret
[EMAIL PROTECTED] *
** REXPFactory unable to interpret
[EMAIL PROTECTED]
How can I in general,force the unserialize to return a list?
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
Marijuana
dataset, the y-axis
labels overlap so I would like to split it across several panels(1
panel per page) with about 25-50 per panel.
Is there a way to do this?
Regards
Saptarshi
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[alternative HTML
on to set the height to 0 when I'm the
top panel.
Or maybe like par.strip.text I could set it to a vector equal to the
length of the panels, alternating (Draw,DontDraw,Draw,)
Is this possible?
Regards
Saptarshi
P.S I'm essentially passing dummy variables to xyplot and for each
valu
tles.)
Is there a way to solve this? Also, each level of C appears in exactly
one
combination of A and B (the combinations that appear in the data set,
not the ones produced by lattice)
Kind regards Saptarshi
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[a
Forgot to send to the list.
Begin forwarded message:
> From: Saptarshi Guha <[EMAIL PROTECTED]>
> Date: September 19, 2008 1:43:50 PM GMT-04:00
> To: Gabor Grothendieck <[EMAIL PROTECTED]>
> Subject: Re: [R] Lines between panels in lattice
>
> Certainly.
>
&g
Got it. It should be plot1.panel.1.2.off.vp and likewise.
Thanks
Saptarshi
On Sep 19, 2008, at 12:08 PM, Saptarshi Guha wrote:
> Hello,
> I have a multi-page display each consisting of two-panels above each
> other.
> I need to draw a line from the top panel to bottom
lot1.panel.1.1.vp")
grid.line.to(unit(1.2,"native"),unit(3.5,"native"))
However, I can see the line in the bottom panel, but nothing in the
top. Is there some
clipping going on?
Thanks
Saptarshi
Saptarshi Guha | [EMAIL PROTEC
ght happen (as pointed out in the help page)
but how can I get around it? Should I specify a width to the device?
Thank you
Saptarshi
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[alternative HTML version deleted]]
__
(Mac) device, there is very little padding
between the bottom of the curve and the lower horizontal axis and
between the maximum values of the curve and the upper horizontal axis.
How can i increase the padding - top,bottom,left and right?
Thanks in advance for your time.
Hello,
Is there a way to add minor tick marks to the Y-axis of a lattice
plots?
Thank you
Saptarshi
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[alternative HTML version deleted]]
__
R
Aah, didn't notice this one.I was using the sunspot data and couldnt
think of a way to show it in this example.
Nevertheless, axs="i" worked perfectly.
Thank you
Saptarshi
On Feb 19, 2008, at 4:17 PM, Deepayan Sarkar wrote:
>>
>>In this case there is some pa
p2=u[u[,3]==2,1]
xlim=list(range(p1),range(p2))
xyplot(u[,2]~u[,1]|u[,3],scales=sc,xlim=xlim,type="l",layout=c(1,2))
In this case there is some padding between the endpoints and the
vertical axes.
How can I remove this padding?
Thank you.
On Feb 17, 2008, at 1:18 PM, Deepayan Sarkar wrote:
> See ?print.trellis.
>
> p <- xyplot(1 ~ 1, aspect = 0.5)
> p
> plot(p, panel.width = list(2, "inches"), panel.height = list(1,
> "inches"))
>
> This overrides 'aspect=' though, that is, you will need to specify
> both width and heig
same scales.
I suppose i need to do something in prepanel but what?
Is there any function i can call to set the actual length of the axes?
Thank you
Saptarsho
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[alternative HTML ve
thing in prepanel but what?
Is there any function i can call to set the actual length of the axes?
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
for your time and help.
Regards
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self
directory `/home/sguha/tmp/R-2.5.1/src/library'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/sguha/tmp/R-2.5.1/src'
make: *** [R] Error 1
Could someone point out what I'm supposed to fix?
Thank you for your time
Saptarshi
__
R
84 matches
Mail list logo