Displaying 3 results from an estimated 3 matches for "huali".
Did you mean:
hali
2009 Jun 29
2
How to read a list into R??
Dear R helpers:
I have tried many times to find some way to read a list into R. But I faid. Here is an example:
I have a file 'List.txt' which includes data as follows:
[[1]]
[1] 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.5 0.0 0.0 0.0
[19] 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
[[2]]
[1] 0.0000000 0.5000000 0.0000000 0.0000000
2008 Jan 26
3
An R clause to bind dataframes under certain contions
Hi netters,
Suppose I have two data frames X and Y. X has three colnames A, B and C. Y has three colnames A,B and D.
I want to combine them into one matrix, joining the rows having the same A and B values (X$A==Y$A and X$B = Y$B). So the resulting dataframe has four variables/columns: A,B,C and D.
I was wondering what's the best way to do it in R. Could anyone give me some advice?
Thanks!
2008 Jan 26
3
Comparison of aggregate in R and group by in mysql
Hi, netters,
First of all, thanks a lot for all the prompt replies to my earlier question about "merging" data frames in R.
Actually that's an equivalence to the "join" clause in mysql.
Now I have another question. Suppose I have a data frame X with lots of columns/variables:
Name, Age,Group, Type, Salary.
I wanna do a subtotal of salaries:
aggregate(X$Salary,