The following is an admittedly long response to your question, but I thought it was worth trying to explain why the error was occurring to help you avoid similar problems in the future. I hope this
Assuming 'my.data' is a data.frame object then data.matrix(my.data) should do the job. Be careful that all elements of your data frame are compatible (i.e. all numeric) or you may get weird results.
Hi All, I am being plagued by the following error message in the new S+ 7 Workbench interface and was wondering if anyone else has had similar issues. -- ERROR START -- Unexpected Signal : EXCEPTION_
quick follow-up on the message I posted earlier... In trying to figure out why this was happening I noticed that S+ uses it's own copy of the Java jvm.dll file which appears to be at least a year ou
The following should do what you want: test.df1 <- data.frame(key=c(1:10), data.frame(to.get=c(2,4,6,8,10)) test.df1[test.df2$to.get,] -- William A. Stewart Manager, Operational Risk RBC Financial G
Good morning Michael, Unless I am missing something from your description, I think unique should work and give you the result you're after. b=rep(1:3,40)) a b 1 one 1 2 two 2 3 three 3 4 four 1 5 one
The merge command should do what you want. merge(df.1, df.2, by="index") -- William A. Stewart Senior Manager, Operational Risk RBC Financial Group william.stewart@rbc.com phone: 416-974-3019 I have