Displaying 2 results from an estimated 2 matches for "lamarao".
2012 Apr 05
4
Help Using Spreadsheets
Hello,
I am a new user of R and I am trying to use the data I am reading from a spreadsheet.
I installed the xlsReadWrite package and I am able to read data from this files, but how can I assign the colums into values?
E.g:
as I read a spreadsheet like this one:
A B
1 2
4 9
I manually assign the values:
A<-c(1,4)
B<-c(2,9)
to plot it on a graph:
plot(A,B)
or make histograms:
hist(A)
But
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",