Displaying 2 results from an estimated 2 matches for "removespace".
2012 Jan 13
2
Remove space from string
Dear R users,
I have some trivial query.
I have a string, I want to remove space from the string.
For eg.
Input:
a <- " Remove space "
Output required:
"Removespace"
I tried using str_trim but only removes end spaces. library(stringr).
Regards
Vikram
[[alternative HTML version deleted]]
2004 Dec 13
3
Advice on parsing formulae
Dear list
I would like to be able to group terms in a formula using a function that I
will call tvar(), eg. the formula
Y ~ 1 + tvar(x:A) + tvar(z) + u + tvar(B) + tvar(poly(v,3))
where x,u and v are numeric and A and B are factors - binary, say.
As output, I want the model.matrix as if tvar had not been there at all. In
addition, I would like to have information on the grouping, as a vector