I'd like to have a data.frame structured something like the following:
d - data.frame (
x=list( c(1,2), c(5,2), c(9,1) ),
y=c( 1, -1, -1)
)
The reason is this: 'd' is the training data for a machine learning
algorithm. d$x is the independent data, and d$y is the dependent
data.
In
I'm very new to R, so please forgive me if I just missed the answer in
existing documentation...
I have a data set with at least three columns, X, Y, and Z.
I want to produce a chart where one axis shows all the unique values of X,
and the other axis shows all the unique values of Y. Each cell
it with appropriate
values of z. Then pass that to heatmap or image.
Hope that helps--feel free to tell me if I've answered the wrong
question,
Jeff.
On Nov 15, 2006, at 8:30 AM, Christian Convey wrote:
I'm very new to R, so please forgive me if I just missed the answer in
existing documentation
That did it! Thanks Marc.
- Christian
On 11/15/06, Marc Schwartz [EMAIL PROTECTED] wrote:
On Wed, 2006-11-15 at 15:03 -0500, Christian Convey wrote:
Thanks, let me try to clarify my question with an example.
Suppose I have the following data:
Gender, Major, Course-Grade
F, Psy