# create some test data
df <- data.frame( id=101:105, author_id=25:21, parent_id=c(NA,NA,101,NA,NA)
)
df$parent_author_id <- sapply(1:nrow(df),
function(i) { if( !is.na(df$parent_id[i]) ) { j <-
match(df$parent_id[i],df$id); df$author_id[j] } else NA } )
df
# id author_id parent_
I have a data frame containing two variables: year and rate (shown below).
Which function can I use to plot rate (y-axis) against year (x-axis)?
There will be more columns of rate later on.
Thank you.
year rate 1 1993 0.608 2 1994 0.622 3 1996 0.623 4 1998 0.647 5 2000
0.646 6 2002 0.625 7 2004 0
Hi all!
I have a tibble regarding a series of comments on a forum; the tibble has a
certain number of variables, and in particular:
id: comment id;
author_id: author id;
parent_id: if the message is a reply, the original comment id
I want to add another column, in which I put the author id of th
On 7/07/19 11:59 AM, Jeff Newmiller wrote:
Who let the editor in here? :-)
Sorry! Can't help it! :-)
Anyway, I stand corrected.
Sad to say, you are far from being alone in your breach of this
particular rule of usage.
cheers,
Rolf
--
Honorary Research Fellow
Department of Statistics
Who let the editor in here? :-)
Anyway, I stand corrected.
On July 6, 2019 3:37:52 PM PDT, Rolf Turner wrote:
>
>On 6/07/19 11:15 PM, Jeff Newmiller wrote:
>
>
>
>> I have tried both Mathematica and Wolfram Alpha at times and found
>neither
>> of them so compelling that I felt the slightest bit j
On 6/07/19 11:15 PM, Jeff Newmiller wrote:
I have tried both Mathematica and Wolfram Alpha at times and found neither
of them so compelling that I felt the slightest bit jealous of people who
have licensed access to Wolfram's tools and services.
You mean "... *envious* of people ... "!!!
Please do not post in html.
You could use ggplot to do this. But you need to do a bit of work yourself.
On Sat, 6 Jul 2019 at 10:51, wrote:
>
> Hello,
>
> Please don't post inHTML, the data is unreadable.
>
> As for the question, it is very basic. try any of
>
>
> plot(rate ~ year, data = df)
Hello,
Please don't post inHTML, the data is unreadable.
As for the question, it is very basic. try any of
plot(rate ~ year, data = df)# df is your dataframe
plot(df$year, df$rate)
Then read ?plot and ?par to see how to customize the graph, by
changing the plot type, how to add colors,
Oh come on!
Please do your homework and spend time with some basic R tutorials, one of
which ships with R, although there are tons more good ones on the web.
And FYI, there are *several* different plotting systems that one can access
using various R packages. Probably the most basic -- but still
I have a data frame containing two variables: year and rate (shown below).
Which function can I use to plot rate (y-axis) against year (x-axis)?
There will be more columns of rate later on.
Thank you.
year rate 1 1993 0.608 2 1994 0.622 3 1996 0.623 4 1998 0.647 5 2000
0.646 6 2002 0.625 7 2004 0
Nobody has mentioned Julia. Last year Changcheng Li did a Google Summer of Code
project to
add automatic differentiation capability to R. autodiffR package was result,
but it is still
"beta". The main awkwardness, as I would guess for Wolfram and other wrappings,
is the
non-R side having "update
I don't get it. I have been quite content to use Maxima when I want symbolic
manipulation for many years. I have not felt this pressure you imply that R
should do everything, and I have tried both Mathematica and Wolfram Alpha at
times and found neither of them so compelling that I felt the slig
Hi Sarah,
The size_n_color function in the plotrix package does something like
this. To get the colors that you want using "color.scale" in the same
package, look at the help page for that function. The values in
A1.matrix[,3] probably don't range from 0 to 2, so getting exactly
what you want can b
13 matches
Mail list logo