aggregate(), tapply(), do.call(), rbind() (etc.) are extremely useful
functions that have been available in R for a long time. They remain
useful regardless what plotting approach you use - base graphics,
lattice or the more recent ggplot.
Philip
On 22/02/2017 8:40 AM, C W wrote:
Hi Carl,
Hi Carl,
I have not fully learned dplyr, but it seems harder than tapply() and the
?apply() family in general.
Almost every ggplot2 data I have seen is manipulated using dplyr. Something
must be good about dplyr.
aggregate(), tapply(), do.call(), rbind() will be sorely missed! :(
Thanks!
On Tu
Hi
I have found that:A) Hadley's new book to be wonderful on how to use dplyr,
ggplot2 and his other packages. Read this and using as a reference saves major
frustration.
b) Data Camps courses on ggplot2 are also wonderful. GGPLOT2 has more
capability than I have mastered or needed. To be a
Just. Don't. Do. This. (Hint: Threading mail readers.)
On 21 Feb 2017, at 03:53 , C W wrote:
> Thanks Hadley!
>
> While I got your attention, what is a good way to get started on ggplot2? ;)
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000
I suspect Hadley would recommend reading his new book, R for Data Science
(r4ds.had.co.nz), in particular Chapter 3. You don't need plyr, but it won't
take long before you will want to be using dplyr and tidyr, which are covered
in later chapters.
--
Sent from my phone. Please excuse my brevity
Thanks Hadley!
While I got your attention, what is a good way to get started on ggplot2? ;)
My impression is that I first need to learn plyr, dplyr, AND THEN ggplot2.
That's A LOT!
Suppose i have this:
iris
iris2 <- cbind(iris, grade = sample(1:5, 150, replace = TRUE))
iris2
I want to have some
> On Feb 20, 2017, at 8:12 AM, Hadley Wickham wrote:
>
> On Sun, Feb 19, 2017 at 3:01 PM, David Winsemius
> wrote:
>>
>>> On Feb 19, 2017, at 11:37 AM, C W wrote:
>>>
>>> Hi R,
>>>
>>> I am a little confused by the data.table package.
>>>
>>> library(data.table)
>>>
>>> df <- data.frame(
On Sun, Feb 19, 2017 at 3:01 PM, David Winsemius wrote:
>
>> On Feb 19, 2017, at 11:37 AM, C W wrote:
>>
>> Hi R,
>>
>> I am a little confused by the data.table package.
>>
>> library(data.table)
>>
>> df <- data.frame(w=rnorm(20, -10, 1), x= rnorm(20, 0, 1), y=rnorm(20, 10, 1),
>> z=rnorm(20, 20
> On Feb 19, 2017, at 11:37 AM, C W wrote:
>
> Hi R,
>
> I am a little confused by the data.table package.
>
> library(data.table)
>
> df <- data.frame(w=rnorm(20, -10, 1), x= rnorm(20, 0, 1), y=rnorm(20, 10, 1),
> z=rnorm(20, 20, 1))
>
> df <- data.table(df)
df <- setDT(df) is preferred.
Hi R,
I am a little confused by the data.table package.
library(data.table)
df <- data.frame(w=rnorm(20, -10, 1), x= rnorm(20, 0, 1), y=rnorm(20, 10, 1),
z=rnorm(20, 20, 1))
df <- data.table(df)
#drop column w
df_1 <- df[, w := NULL] # I thought you are supposed to do: df_1 <- df[, -w]
df_2
10 matches
Mail list logo