search for: apoian

Displaying 3 results from an estimated 3 matches for "apoian".

2004 Nov 17
8
referencing values of strings
Say you have a vector named x and a function which returns the character string "x" . How would I take "x" as an input and return the vector x? DISCLAIMER: This e-mail message and any attachments are inte...{{dropped}}
2004 Nov 26
2
plotting multiple series in one plot
say we have: > x<-data.frame(a=c(1,2,3,4,5),b=c(1,1,1.5,2,2)) > y<-data.frame(a=c(1,2,3,4,5),b=c(1,2,2,3,3)) How would I plot this so that, with the shared $a as the x-axis values, I have both $b columns plotted together? (a comparison of the two?) thanks. DISCLAIMER: This e-mail message and any attachments are inte...{{dropped}}
2005 May 06
1
data frame output in loops
I know this is very basic--I'm wondering if there is a way to write data frames as outputs from a loop. In other words, take this simple example: > a <- data.frame(x = c(1,2,3,4), y = c(1,2,1,2)) Given a, how would you write a loop that creates two data frames, x and y, where the first column is a column of a and the second column is two times the first column, or: > x x.1