[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 FALSE

[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] 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] 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

[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