[R] TRUE/FALSE as numeric values

2007-02-23 Thread Thomas Preuth
Hello, I want to select in a column of a dataframe all numbers smaller than a value x but when I type in test<-(RSF_EU$AREA<=x) I receiv as answer: > test [1] TRUE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE TRUE [18] TRUE TRUE TRUE TRUE FALS

Re: [R] Ubuntu Linux and X11

2007-02-17 Thread preuth
Well after installing a debian package of the cran mirors and reconfiguning the xorg.conf as yuelin li suggested the hist() and other graphical commands now work properly. Thanks to the fruitful contributions. Thomas Quoting Oleg Sklyar <[EMAIL PROTECTED]>: > > Good point. But on my systems , th

[R] Ubuntu Linux and X11

2007-02-16 Thread preuth
Hello, i have a problem with creating histograms and plots under ubuntu linux. After creating a vector "test" i want to make a histogram, but the following error appears: > hist (test) Error in X11() : could not find any X11 fonts Check that the Font Path is correct. Does anybody know this probl

[R] change the attribute of a column

2007-01-25 Thread Thomas Preuth
Hello, I have a column which is filled by numbers, but is attributed as list. How can I change the attributes into numeric to use statistic operations? Greetings, Thomas -- Thomas Preuth Swiss federal institutes for forest, snow and landscape research WSL/SLF Fluuelastrasse 11 CH- 7260 Davos

[R] how to ignore "NA" or replace it by another value

2006-09-21 Thread Thomas Preuth
Hello, I`m a newbie to R so maybe this question is boring, but I have a large table with several empty missing values, which come out as "NA". How can i ignore them or replace them by another number? Greetings, Thomas __ R-help@stat.math.ethz.ch mail

[R] delete a entire vector of a dataframe

2006-09-21 Thread Thomas Preuth
delete a entire vector of a dataframe Hello, i want to delete a vector and tried "rm (t.d$V712)". This did not work, message was, could not find variable. I thought the $ defines the vectro in a dataframe, when I just type "t.d$V712" the content of this vector is displayed. Greetings, Thomas

[R] problems with simple statistical procedures

2006-07-02 Thread Thomas Preuth
Hello, I use an imported dataframe and want to extract the mean value for one column. after typing "mean (rae.df$VOL_DEP)" I receive "[1] NA Warning message: Argument ist weder numerisch noch boolesch: gebe NA zurück in: mean.default("rae.df$POINT_Y_CH") " But when i look into the dataframe the