Re: [R] Error loading workspaces after upgrade

2013-04-12 Thread Tamas Barjak
YES, it's work! Fine! Thank you! I wait for the R-patch.

Regards,
Tamas


2013/4/12 Duncan Murdoch 

> On 12/04/2013 7:14 AM, Tamas Barjak wrote:
>
>> Dear Members,
>> I upgraded R from 2.15.3 to 3.0.0 (binary) on my WinXP and now I can't
>> load my workspaces. The error message is:
>>
>> "Error: requested primitive type is not consistent with cached value
>> During startup - Warning message:
>> unable to restore saved data in .RData"
>>
>> Any idea to fix that?
>>
>
> Tamas sent me a copy of the bad file, and I've got a workaround:
>
> The problem is an object called .SavedPlots.  It was produced by the
> Windows graphics device when it was recording the history.  It can't be
> loaded into R 3.0.0, because some of the internal organization of things
> has changed.
>
> The workaround is to restart 2.15.3, load the workspace, then
>
> rm(.SavedPlots)
>
> and save the workspace.  After that things should be fine.
>
> I'll try to get something in place in R-patched so that this doesn't cause
> the whole .RData load to fail.
>
> Duncan Murdoch
>
>
>

[[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 commented, minimal, self-contained, reproducible code.


[R] Error loading workspaces after upgrade

2013-04-12 Thread Tamas Barjak
Dear Members,
I upgraded R from 2.15.3 to 3.0.0 (binary) on my WinXP and now I can't
load my workspaces. The error message is:

"Error: requested primitive type is not consistent with cached value
During startup - Warning message:
unable to restore saved data in .RData"

Any idea to fix that?

Thanks, Tamas

[[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 commented, minimal, self-contained, reproducible code.


[R] Rcmdr vs SPSS in hungarian

2011-04-21 Thread Tamas Barjak
Remélem valaki ezt is elolvassa, megérti, és válaszol a problémámra.

A gondom a következõ:

Kiszámoltattam a maradékokat az R commanderrel, és az SPSS -el is. És itt
kezdõdik igazán a gond. Az SPSS a Studentizált törölt maradékokra ugyanazt
az eredményt dobta, mint az Rcmdr a Studentizált maradékokra. Az SPSS
outputja biztos hogy jó, mivel egy könyv adatait használtam fel, és az
eredmények megegyeznek a könyv eredményeivel. Az Rcmdr outputja viszont nem.
Nem értem, hogy ha én a Studentizált maradékokat akarom kiszámolni az
Rcmdr-rel, akkor miért a Studentizált törölt maradékokat kapom??? Hogy kapom
meg a Studentizált maradékokat???

Rcmdr--> Models--> Add observation statistics to data--> Studentized
residuals

A fórumra tegnap este vetettem fel ezt a problémát, de a hiányos
nyelvtudásom miatt sokan nem értették a problémám.

Remélem valaki válaszol!

Köszönöm szépen elõre is!

[[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 commented, minimal, self-contained, reproducible code.


[R] Rcmdr vs SPSS

2011-04-20 Thread Tamas Barjak
Hy all!

Excuse me for the inaccurate composition, but I do not speak well in
English.

I noticed a mistake in Rcmdr (?) -- Models menu --- Add observation
statistics to data --- Studentized residuals.
My output :

(Rcmdr !!!)

rstudent.RegModel.1 (= *Studentized residuals*)

-1.5690952
-0.0697492
-0.6830684
1.0758056
0.2719739
0.3626101
0.8361803
1.0180479
0.8936783
-0.4630021
-3.2972946

AND!!!

SPSS (= *Studentized DELETED residuals*)

-1,56910
-0,06975
-0,68307
1,07581
0,27197
0,36261
0,83618
1,01805
0,89368
-0,46300
-3,29729

This wrong???

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] error in saved .csv

2011-03-01 Thread Tamas Barjak
Yes, the format is incorrect. I have already tried the write.table, but it
didn't work.


2011/3/1 jim holtman 

> I am not sure what you are saying your problem is?  Is the format
> incorrect?  BTW, notice that write.csv does not have a 'sep'
> parameter.  Maybe you should be using write.table.
>
> On Tue, Mar 1, 2011 at 4:36 PM, Tamas Barjak 
> wrote:
> > Help me please!
> >
> > I would like to be saved a data table:
> >
> > write.csv(random.t1, "place", dec=",", append = T, quote = FALSE, sep = "
> ",
> > qmethod = "double", eol = "\n", row.names=F)
> >
> > It's OK!
> >
> > But the rows of file
> >
> >  1,1,21042,-4084.87179487179,2457.66483516483,-582.275562799881
> > 2,2,23846,-6383.86480186479,-3409.98451548449,-3569.72145340269
> > and no
> >
> > 1
> > 21042 - 4084.87179487179 2457.66483516483
> > Not proportional...
> >
> > What's the problem???
> >
> > Thanks!
> >
> >[[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 commented, minimal, self-contained, reproducible code.
> >
>
>
>
> --
> Jim Holtman
> Data Munger Guru
>
> What is the problem that you are trying to solve?
>

[[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 commented, minimal, self-contained, reproducible code.


[R] error in saved .csv

2011-03-01 Thread Tamas Barjak
Help me please!

I would like to be saved a data table:

write.csv(random.t1, "place", dec=",", append = T, quote = FALSE, sep = " ",
qmethod = "double", eol = "\n", row.names=F)

It's OK!

But the rows of file

 1,1,21042,-4084.87179487179,2457.66483516483,-582.275562799881
2,2,23846,-6383.86480186479,-3409.98451548449,-3569.72145340269
and no

1
21042 - 4084.87179487179 2457.66483516483
Not proportional...

What's the problem???

Thanks!

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] poisson distribution

2010-09-06 Thread tamas barjak
Successful!

Thank you!



2010/9/6 David Winsemius 

>
> On Sep 6, 2010, at 1:13 PM, tamas barjak wrote:
>
>  Hello!
>>
>> I need some help.
>> How I know it to draw the formula of the poisson distribution?
>>
>> expr<-expression(P(xi == k) == frac(lambda^k, factorial(k))*e^-lambda)
>> --->
>> not good
>>
>
> ?plotmath
>
> (Do not see factorial as a plotmath "function"
>
> Try:
>
> expr<-expression(P(xi == k) == frac(lambda^k, k*"!")*e^-lambda)
>
>
>
>> on the screen the " k! " not the Poisson Formula, but "factorial(k)"
>>
>> Thanx!
>>
>
> -- David.
>

[[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 commented, minimal, self-contained, reproducible code.


[R] poisson distribution

2010-09-06 Thread tamas barjak
Hello!

I need some help.
How I know it to draw the formula of the poisson distribution?

expr<-expression(P(xi == k) == frac(lambda^k, factorial(k))*e^-lambda) --->
not good

on the screen the " k! " not the Poisson Formula, but "factorial(k)"

Thanx!

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] binomial distribution

2010-08-28 Thread tamas barjak
Perfect!

Thank You!

2010/8/28 Peter Dalgaard 

> On 08/28/2010 10:23 PM, tamas barjak wrote:
> > Hello!
> >
> > I need some help.
> > How I know it to draw the formula of the binomial distribution?
> >
> > expr<-expression(P(xi == k) == choose(n, k)* p^k*(1-p)^(n-k)) ---> not
> good
> >
> > on the screen the "choose(n, k)" not the Binomial Formula, but "choose(n,
> > k)"
>
> Check demo(plotmath), 4th-to-last example.
>
> --
> Peter Dalgaard
> Center for Statistics, Copenhagen Business School
> Phone: (+45)38153501
> Email: pd@cbs.dk  Priv: pda...@gmail.com
>

[[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 commented, minimal, self-contained, reproducible code.


[R] binomial distribution

2010-08-28 Thread tamas barjak
Hello!

I need some help.
How I know it to draw the formula of the binomial distribution?

expr<-expression(P(xi == k) == choose(n, k)* p^k*(1-p)^(n-k)) ---> not good

on the screen the "choose(n, k)" not the Binomial Formula, but "choose(n,
k)"

Thanx!

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] 2 simple question

2010-04-25 Thread tamas barjak
Yes, seems a wiser step really.

Thank you!

Tamas

2010/4/25 Jim Lemon 

> On 04/25/2010 06:27 AM, tamas barjak wrote:
>
>> Hi
>>
>> I do not speak in English very well, I'm sorry.
>>
>> I try good:
>>
>> layout(matrix(1:4,ncol=2, byrow=T)) = par(mfrow=c(2, 2))
>>
>> plot(1,1)<--- anddoes plot in the upper left corner
>> plot(2, 2)<--- upper right corner
>>
>> BUT, I like plot( n, m) for example lower right corner, or lower left
>> corner, or again upper right corner etc...
>>
>> But I received an answer already:
>>
>> ?split.screen
>> ?screen   #same help page
>>
>>  From this is it any better?
>>>
>>
>>  Yes, that is probably the one you want. I think that split.screen is the
> only one of the "multiple plot in one device" functions in base graphics
> that allows you to specify the area in which you want to plot.
>
> Unfortunately, split.screen does not seem to preserve the device
> coordinates, so if you go back to a plot:
>
> screen(2)
> lines(1:5,rnorm(5))
>
> it does not generally plot in the correct place. I think you might have to
> group your plotting commands:
>
> screen(1)
> plot(10:1)
> lines(2:4,2:4)
> screen(4)
> plot(rnorm(6))
> points(rnorm(6),col="red")
>
> which you can do with the other multiple plot functions anyway.
>
> Jim
>

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] 2 simple question

2010-04-24 Thread tamas barjak
Hi

I do not speak in English very well, I'm sorry.

I try good:

layout(matrix(1:4,ncol=2, byrow=T)) = par(mfrow=c(2, 2))

plot(1,1) <--- anddoes plot in the upper left corner
plot(2, 2) <--- upper right corner

BUT, I like plot( n, m) for example lower right corner, or lower left
corner, or again upper right corner etc...

But I received an answer already:

?split.screen
?screen   #same help page

>From this is it any better?

Tamas

[[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 commented, minimal, self-contained, reproducible code.


Re: [R] 2 simple question

2010-04-23 Thread tamas barjak
Thank you!

But, I'm sorry, cannot be understood what I wrote...(I'm sorry, I use a
machine translation program)...

Well:

I share out onto 4 parts the graphical area:

>layout(matrix(1:4,ncol=2, byrow=T))

I would like to choose onto which I draw

example:

>plot(x, y, ...) <--- I would like 1 No. part of a screen

>plot(z, u, ...) <--- I would like 2 No. part of a screen

etc...

Do you understand?


Tamas

[[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 commented, minimal, self-contained, reproducible code.


[R] 2 simple question

2010-04-23 Thread tamas barjak
Hi All!

I have 2 plain questions:

1.)
I know that very primitive question, but that to grant it, that the drawing
on the screen divided up onto which part draw

for example:


layout(matrix(1:4,ncol=2, byrow=T))

plot(x, y, ...) <--- 1. screen

plot(y, z, ...) <--- 3. screen

plot(z, x, ...) <--- 2. screen

etc...

2.)

How I can fix it and to insert the random numbers in order for him to
generate them later

for example:

a<-runif(100)

and to insert these here---> rnorm(100, 0, 1)

Thank you!

[[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 commented, minimal, self-contained, reproducible code.


[R] 2 simple question

2010-04-23 Thread tamas barjak
Hi All!

I have 2 plain questions:

1.)
I know that very primitive question, but that to grant it, that the drawing
on the screen divided up onto which part draw

for example:


layout(matrix(1:4,ncol=2, byrow=T))

plot(x, y, ...) <--- 1. screen

plot(y, z, ...) <--- 2. screen

etc...

2.)

How I can fix it and to insert the random numbers in order for him to
generate them later

for example:

a<-runif(100)

and to insert these here---> rnorm(100, 0, 1)

Thank you!

[[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 commented, minimal, self-contained, reproducible code.


[R] simple question

2010-04-23 Thread tamas barjak
Hi All!

I know that very primitive question, but that to grant it, that the drawing
on the screen divided up onto which part draw

for example:


layout(matrix(1:4,ncol=2, byrow=T))

plot(x, y, ...) <--- 1. screen

plot(y, z, ...) <--- 2. screen

etc...

Thank you!

[[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 commented, minimal, self-contained, reproducible code.


[R] index ordering

2010-04-22 Thread tamas barjak
Hi All!

I have a problem that I do not know it how it is necessary to query an index
belonging to a given value.

Somebody would help?

[[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 commented, minimal, self-contained, reproducible code.


[R] RNG

2010-04-21 Thread tamas barjak
Hi all!

I would like to generate random numbers between 0 and 1. How can I do this?
I downloaded it single RNG but it generates ones between only 1 and
1...:(

Thank you for the help!

Tamas

[[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 commented, minimal, self-contained, reproducible code.


[R] "some problems"

2010-04-20 Thread tamas barjak
Dear R community!

I am a mathematician listener, and I have to rewrite some source codes from
Matlab to R. I would like to ask a solution of people who are skilled at him
better hereby, because it is very new for me R and I do not receive it final
result than in Matlab.

So the problem:

---
Let us generate 2005 standard normal random numbers, we depict it these the
histogram of density together with the standard normal density function! We
do this so that on [0,1] we write even random numbers the normal
distribution function into inverse one's!
---

I have a problem with it mainly when who I want to have it drawn. The
drawing the arrangement of the histogram and the density function slips
compared to each other. But the same situation then, if barplot() I use it.

I apologise for my ridiculous problem, and my bad composition (translator I
use a program).

Thank you very much: Barjak Tamas

[[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 commented, minimal, self-contained, reproducible code.