Re: [R] R on kubuntu

2005-07-11 Thread Lefebure Tristan
No problem at all.
If you allow universe packages, many binary R packages are available (from 
the GNU/Linux Debian sid). 


On Monday 11 July 2005 11:54, Constant Depièreux wrote:
 Hello all,

 I am planning to redeploy my workstation under KUBUNTU.

 Does any body has any r experience installing/using r on this platform?

 Best regards.

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R on kubuntu

2005-07-11 Thread Lefebure Tristan
On Monday 11 July 2005 16:44, Henrik Andersson wrote:
 Or is there some other repository providing more updated binaries for
 Ubuntu 5.04?

I don't think, but I'm fine with R 2.0.1 ...
The next ubuntu release, Ubuntu 5.10 (The Breezy Badger), is for October 2005 
and will include R 2.1.1 (http://packages.ubuntu.com/breezy/math/r-base).


-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Mandrake 10.1

2005-03-16 Thread Lefebure Tristan
I'm running R-2.0.0-1mdk.i586.rpm under Mandrake 10.1 without problem.
I know that there is a problem of dependency with other packages. 
Try that from a shell (eg: Konsole):

cd path_to_your_R_rpm
su
urpmi info-4.7-2.mdk
rpm -i R-2.0.0-1mdk.i586.rpm


Just a remark: While encountering problems under Linux, the solution is not 
to move to an other distribution... (in this way you will change of 
distribution each month, and become a super linux installer ... but not a 
good linux user)

HTH

Tristan 

On Tuesday 15 March 2005 08:46, miguel manese wrote:
  I am trying to install the R-2.0.0-1mdk.i586.rpm
  http://cran.planetmirror.com/bin/linux/mandrake/10.0/R-2.0.0-1mdk.i586.r
 pm  file   on mandrake 10.1. Since the file is, originally, meant for
  Mandrake 10.0, it is not surprising me that the installation does not
  work.
 
  The error message that I get can be translated in something like:
  impossible to install since the info is not satisfied.
  Could you please help me in installing R on my Mandrake 10.1?
 
  PS If you feel to answer me,  consider that I am almost an absolute
  beginner at linux:)

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] persistance of factor levels in a data frame

2005-02-28 Thread Lefebure Tristan
Hi,
Just something I don't understand:

data - data.frame(V1=c(1:12),F1=c(rep(a,4),rep(b,4),rep(c,4)))
data_ac - data[which(data$F1 !=b), ]  
levels(data_ac$F1)

Why the level b is always present ?

thanks

Tristan, R 2.0.1 for Linux Fedora 3

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] thanks

2005-01-12 Thread Lefebure Tristan
see man R

example from a shell:

echo -e pdf(file=\test.pdf\)\nplot(1:10,11:20)\ndev.off(dev.cur())\ncmd.R
R -s cmd.R

(write a file of command for R, and than feed R with it)

On Tuesday 11 January 2005 15:59, Cserháti Mátyás wrote:
 Dear all,

 Thanks to those 3 people who sent me answers to my question. Got
 the problem solved. Great!

 Now, another question of mine is:

 I would like to run an R script from the Linux prompt. Is there any way
 possible to do this? The reason is, the calculation that I'm doing takes a
 few hours, and I would like to automatize it.

 Or does it mean that I have to run source within the R prompt?

 Or is there a way to do the automatization within the R prompt?

 Thanks, Matthew

 u.i. Köszi, Zoli!

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] RSvgDevice incomplete svg output

2005-01-07 Thread Lefebure Tristan
Hi
The problem is clearly associated to R.2.0:
Same command on same data with same package (RSvgDevice 0.5.3) but with R1.9.1 
or R2.0.0 gave me different results: svg files are correct with R1.9.1, not 
with R.2.0.0.
(email forward to the package developper)

On Thursday 06 January 2005 15:37, Lefebure Tristan wrote:
 Hi
 I use RSvgDevice to output plot, and modify them using svg editor (inkscape
 or sodipodi on Linux). Some month ago, results were perfect. I did exactly
 the same analysis today on the same data, and unfortunatly the results are
 different. While looking to the svg file, it seems that all information
 concerning fill and stroke of objects are lost. The consequence is that
 all objects become invisible ..

 exemple:
 Correct old file:
 .
 polygon points=93.35 , 119.69 109.59 , 119.69 109.59 , 110.94 93.35 ,
 110.94  style=stroke-width:1;stroke:#00;fill:#7F7F7F /
 ...

 Today bad file:
 ..
 polygon points=174.51 , 53.95 190.74 , 53.95 190.74 , 53.95 174.51 ,
 53.95  style=stroke-width:1;stroke:#FF;fill:none;stroke-dasharray /
 .

 A problem associated to R2.0 ?
 Thanks


 package `RSvgDevice' version 0.5.3

 $platform
 [1] i586-mandrake-linux-gnu

 $arch
 [1] i586

 $os
 [1] linux-gnu

 $system
 [1] i586, linux-gnu

 $status
 [1] 

 $major
 [1] 2

 $minor
 [1] 0.0

 $year
 [1] 2004

 $month
 [1] 10

 $day
 [1] 04

 $language
 [1] R

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] RSvgDevice incomplete svg output

2005-01-06 Thread Lefebure Tristan
Hi
I use RSvgDevice to output plot, and modify them using svg editor (inkscape or 
sodipodi on Linux). Some month ago, results were perfect. I did exactly the 
same analysis today on the same data, and unfortunatly the results are 
different. While looking to the svg file, it seems that all information 
concerning fill and stroke of objects are lost. The consequence is that 
all objects become invisible ..

exemple:
Correct old file:
.
polygon points=93.35 , 119.69 109.59 , 119.69 109.59 , 110.94 93.35 , 110.94 
 style=stroke-width:1;stroke:#00;fill:#7F7F7F /
...

Today bad file:
..
polygon points=174.51 , 53.95 190.74 , 53.95 190.74 , 53.95 174.51 , 53.95  
style=stroke-width:1;stroke:#FF;fill:none;stroke-dasharray /
.

A problem associated to R2.0 ?
Thanks 


package `RSvgDevice' version 0.5.3

$platform
[1] i586-mandrake-linux-gnu

$arch
[1] i586

$os
[1] linux-gnu

$system
[1] i586, linux-gnu

$status
[1] 

$major
[1] 2

$minor
[1] 0.0

$year
[1] 2004

$month
[1] 10

$day
[1] 04

$language
[1] R

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Adding values to the end of a vector?

2005-01-04 Thread Lefebure Tristan
why not :

x-vector()
for (i in 1:5) { x -c(x,i) }

x
[1] 1 2 3 4 5

for (i in 1:5) { x -c(x,i) }

x
[1] 1 2 3 4 5 1 2 3 4 5



On Tuesday 04 January 2005 14:57, Ingmar Visser wrote:
  x=numeric(0)
  for(i in 1:5) {

 + x[length(x)+1]=i
 + }

  x

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
Bat. Darwin C 69622 Villeurbanne - France

Phone: (33) (0)4 26 23 44 02
Fax: (33) (0)4 72 43 15 23

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] boxplot a list of objects

2004-07-07 Thread Lefebure Tristan
Hi list,

#Imagine we have vectors of different length (in practice 100 vectors):
a-c(1:10)
b-c(1:20)
c-c(1:30)

#then we got a list of the names of those objects:

list-c(a,b,c)

#I don't find how to boxplot them using a less stupid way than :

boxplot(get(list[1]),get(list[2]),get(list[3]))


Thanks for any advice !


-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
6 rue Dubois 69622 Villeurbanne - France

Phone: (33) (0)4 72 43 29 45
Fax: (33) (0)4 72 43 15 23

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] boxplot a list of objects

2004-07-07 Thread Lefebure Tristan
thanks a lot !

an other simple solution proposed by Stefano Guazzetti is  :
boxplot(list(a, b, c))

(ok I will never use again a function name for an object name)

On Wednesday 07 July 2004 10:48, Unternährer Thomas, uth wrote:
 One possibility ist

 boxplot(sapply(ListOfNames, get, env = .GlobalEnv))

 Hope that this helps

 Thomas


 -Ursprüngliche Nachricht-
 Von: Lefebure Tristan [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 7. Juli 2004 10:34
 An: [EMAIL PROTECTED]
 Betreff: [R] boxplot a list of objects


 Hi list,

 #Imagine we have vectors of different length (in practice 100 vectors):
 a-c(1:10)
 b-c(1:20)
 c-c(1:30)

 #then we got a list of the names of those objects:

 list-c(a,b,c)

 #I don't find how to boxplot them using a less stupid way than :

 boxplot(get(list[1]),get(list[2]),get(list[3]))


 Thanks for any advice !

-- 

Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
6 rue Dubois 69622 Villeurbanne - France

Phone: (33) (0)4 72 43 29 45
Fax: (33) (0)4 72 43 15 23

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] String manipulation

2004-06-25 Thread Lefebure Tristan
Hi
look at ?paste 

 paste(one,two,three,sep=,)
[1] one,two,three





On Friday 25 June 2004 11:07, Robin Gruna wrote:
 Hi,
 let's see, if someone can help my with this one:

 I have the string as follows:
  str-(one,two,three)

 Now I want to concatenate the items to one string, seperateted by space or
 something else,

 str
 one, two, three

 If possible without a loop.

 My actual goal ist to create string like

 str.names
 female = names1, male = names2

 and pass it as argument to list(), intending to create a list

 names.list-list( female = names1, male = names2)

 Thanks a lot,
 Robin

 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] loop and read.table

2003-12-26 Thread lefebure tristan
Hi,
I would like to open several tables with a loop, using something like :
-
$ ls
1.txt   2.txt   3.txt   4.txt
$ R
 for (i in 1:4)  tabi-read.table(i.txt)
Error in file(file, r) : unable to open connection
In addition: Warning message:
cannot open file `i.txt'
--

thanks for any help

Tristan Lefebure

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help