search for: pox_x

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

Did you mean: pos_x
1999 Aug 30
3
using underscore character in column names
...e: ------ start of file ----- pos_x pos_y 1.0 0.0 2.0 1.0 ------ end of file ------- Using read.table, I can read this file just fine: > data <- read.table (file="data", head=T) > data pos_x pos_y 1 1 0 2 2 1 > However, I can't refer to pox_x because the _ character is an alternative to <- (assignment): > data$pos_x Error: Object "x" not found I could use data[1], but I'd prefer to use the column name. Must I change all my column names to remove the underscore character or is there way to force R to recogize the w...