This is the solution that best fits my needs.
Thanks everyone for their responses,
Naresh
Sent from my iPhone
On May 6, 2022, at 2:12 PM, David Carlson
mailto:dcarl...@tamu.edu>> wrote:
You can't get exactly what you want with base graphics, but you can get close
by defining line types and co
Dear David and Rui,
Thanks a lot to both of you for your very fast answers; problem solved! :)
Regards,
Guido
From: David Carlson
Sent: 06 May 2022 20:26
To: Hooiveld, Guido
Cc: r-help@r-project.org
Subject: Re: [R] How to obtain named vector from single-column data frame?
Just use
names(unli
Just use
names(unlist(df[, "VarY", drop=FALSE]))
# [1] "VarY1" "VarY2" "VarY3" "VarY4" "VarY5"
When you extract a single column from a data frame it converts it to a
vector by default.
David L Carlson
On Fri, May 6, 2022 at 1:05 PM Hooiveld, Guido
wrote:
> Dear all, I wrote a some code in wh
Hello,
When you unlist, the dimension is dropped since the result is just one
vector. Add drop = FALSE and that's it.
unlist(df[, "VarY", drop = FALSE])
Hope this helps,
Rui Barradas
Às 19:05 de 06/05/2022, Hooiveld, Guido escreveu:
Dear all,
I wrote a some code in which I 'convert' a d
You can't get exactly what you want with base graphics, but you can get
close by defining line types and colors outside the plot command:
x <- seq(-3, 3, by = 0.01)
lns <- 1:2
clr <- 1:2
matplot(x, cbind(x, x^2), type="l", lty=lns, col=clr)
legend("bottomright", legend = c("x", expression(x^2)), l
I would like to point out that there is an English word
"cran" (one syllable, rhymes with "can" "ban" "than" ...).
It means "
a measure of fresh herrings, equivalent to 37 1/2 gallons".
If you are going to use "CRAN" as the name of something,
you are going to have to expect me to pronounce it lik
6 matches
Mail list logo