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


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

0041-81-4170-359
[EMAIL PROTECTED]
www.wsl.ch
www.slf.ch

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


[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 FALSE  TRUE  TRUE  TRUE  TRUE  TRUE  
TRUE  TRUE FALSE  TRUE  TRUE  TRUE
[35] FALSE  TRUE  TRUE  TRUE  TRUE FALSE FALSE FALSE  TRUE  TRUE FALSE  
TRUE  TRUE FALSE FALSE  TRUE FALSE
[52]  TRUE  TRUE  TRUE  TRUE  TRUE FALSE  TRUE  TRUE FALSE  TRUE

How can i get the values smaller than x and not the TRUE/FALSE reply?

Thanks in advance,
Thomas

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


[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 column is characterized as numeric.

Sorry for bothering but as a complete newbie I just cannot halp myself.

Greetings,
thomas

__
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