search for: term_list

Displaying 1 result from an estimated 1 matches for "term_list".

Did you mean: team_list
2010 Sep 24
1
Some questions about string processing
...wanting to send some strings into a function to allow flexibility inside. My first idea has been e.g. auto_io <- function( var_string, factors ) { # e.g. var_string sent as "test_file.txt" factors sent as "x1 + x2 + x3" # input data_name <- get( var_string ) # term_list <- get( factors ) resp_data <- read.table( data_name, header = TRUE ) # fit temp_model <- lm( y ~ factors, data = resp_data ) etc... Neither the read.table() nor the lm() are working because in each case the string is not converted or understood properly. I'm sur...