search for: temp_model

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

2010 Sep 24
1
Some questions about string processing
...to_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 sure this is possible (and in fact probably easy) but haven't yet seen the light. Could someone illuminate...