Ok, I'll try to do this...
Thanks :D
2015-04-18 18:55 GMT-03:00 Boris Steipe :
> Re-reading your question and taking a wild guess, perhaps you are looking
> for parse() and eval() ...
>
> xyz <- data.frame( a=c(1,2), b=c(3,4))
> xyz
>
> a b
> 1 1 3
> 2 2 4
>
> expp <- parse(text="xyz$a > 1 & x
Re-reading your question and taking a wild guess, perhaps you are looking for
parse() and eval() ...
xyz <- data.frame( a=c(1,2), b=c(3,4))
xyz
a b
1 1 3
2 2 4
expp <- parse(text="xyz$a > 1 & xyz$b == 4") # turn a string into an
expression
expp
expression(xyz$a > 1 & xyz$b == 4)
xyz[eval
Sorry - it's not entirely clear to me what you need to do.
See here for some hints on how to ask questions on this list. I'm sure we'll be
able to help quickly.
http://adv-r.had.co.nz/Reproducibility.html
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
(and d
Hello Boris,
thanks for your response.
So, firstly considered that i've been input a set of serches strings (.txt
format) and i'm using regex to transform in a suitable format to my
script. This part is a final part of my code and i wish putting in input to
a subset.
(.txt formatted)
STR
This is not a regular expression but simply a conjunction (sequence of '&') of
logical expressions. Moreover it's not wrong. Consider:
xyz <- data.frame(municipio = c('Limeira'), mesincident = c('marco'),
trechoklmetros = c(3.00, -4.00, 30))
xyz
municipio mesincident trechoklmetros
1 Limeir
5 matches
Mail list logo