search for: wanted_output

Displaying 2 results from an estimated 2 matches for "wanted_output".

2009 Feb 20
1
How to transfer a list of space delimited character elements into a char vector?
My dear R-helpers: I am a novice in R and have the following text string manipulation question. Is there a function that performs the job described below? Say, wanted_output <- c("ab", "cd", "ef") #the function_wanted can generate c("ab", "cd", "ef") using ab cd ef as the single input argument wanted_output <- function_wanted(ab cd ef) Motivation: I have a very long list of character elements (like, a...
2008 Aug 05
1
About Creating a List by Parsing Text
...-947.379 " [7] "\tGene 13764 214385_s_at AI521646 k= 1 LL= -827.86 " [8] "\tGene 13764 214385_s_at AI521646 k= 2 LL= -777.756 " [9] "\tGene 13764 214385_s_at AI521646 k= 3 LL= -812.083 " __END__ I expect to get this kind of data structure: > wanted_output [['211952_at']] $ll.list [1] -970.692 -965.35 -963.669 [['213301_x_at']] $ll.list [1] -948.527 -947.275 -947.379 etc. How can I achieve that? I am stuck with the following construct __BEGIN__ comp.ll <- model_all[grep("Gene .* k=.*", model_all)] print(comp.ll) pa...