That works! Thank you so much for for help!
On Wed, Jan 2, 2019, 19:56 Jim Lemon Hi Tasha,
> Using the original sample you sent:
>
> rgb_prop<-read.table(text="Red Green Blue pct
> 249 158 37 56.311
> 249 158 68 4.319
> 249 158 98 0.058
> 249 128 7 13.965
> 249 128 37 12.87
> 188 128 37 0.029
> 2
No.
But as this is a statistical issue and not an R programming issue, it is
off topic here. Post on stats.stackexchange.com or other statistical list
and/or spend time with web tutorials.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticki
The bottom of page 276 of the "Gold Book" Modern Applied Statistics by
Venables and Ripley, 4th edition, the last sentence states:
"Random effects are set either to zero or to their BLUP values."
Am I correct in inferring from that, it amounts respectively to
removing the random term from the mo
I do not know how you define "quick way," but as there is an "==" method
for data frames (see ?"==" and links therein for details), that allows the
straightforward use of basic R functionality:
## using your 'deck' and 'topCard' examples:
> deck [ apply(deck == topCard[rep(1,nrow(deck)), ],1, all
AFAIK the intent of the designers of the data frame class was that rownames be
unique and be useful for tracking the origins of records in data subsets.
However, after a few merging operations the traceability becomes murky anyway
and relational set theory avoids them. Neither data.table nor dpl
Many thanks everyone for the rich feedback. Very impressive. I will
digest all the information received and continue on my learning around
R.
Benoit
Duncan Murdoch a écrit :
On 03/01/2019 12:39 p.m., Benoit Galarneau wrote:
Thanks for the feedback.
Point taken about the data.table package
On 03/01/2019 12:39 p.m., Benoit Galarneau wrote:
Thanks for the feedback.
Point taken about the data.table package, I will take a look for sure.
As I am new to the R programming, I'm exploring with the default
libraries as a start.
I have various options that works like this one:
topCard <- de
On 03/01/2019 12:39 p.m., Benoit Galarneau wrote:
Thanks for the feedback.
Point taken about the data.table package, I will take a look for sure.
As I am new to the R programming, I'm exploring with the default
libraries as a start.
I have various options that works like this one:
topCard <- de
See below.
> On Jan 3, 2019, at 6:50 AM, Benoit Galarneau
> wrote:
>
> Hi everyone,
> I'm new to the R world.
> Probably a newbie question but I am stuck with some concept with data frame.
> I am following some examples in the "Hands-On Programming with R".
>
> In short, how can I access/filte
Thanks for the feedback.
Point taken about the data.table package, I will take a look for sure.
As I am new to the R programming, I'm exploring with the default
libraries as a start.
I have various options that works like this one:
topCard <- deck[1,]
#Remove card from deck using row name
d
You would be better served to reference SQL semantics (relational identity)
than Network database semantics (object identifiers) for understanding data
frames. The row in `aCard` is not the same as the row in `deck`, and you should
not construct your algorithms based on individual rows but rathe
>In my programmer's head, something similar to this should "work": ...
> deck[aCard]
There are some people who agree with you... see the data.table package, which
can be made to behave like this.
Keep in mind that the aCard data frame in general may have a different set of
column names or more
You are correct, the anti_join is working fine.
However, I still find it strange there is no "quick" way to find the
index of an item extracted from the data frame.
This works as it returns the deck without the card no 10.
aCard = deck[10,]
cardNo = which(deck$value == aCard$value & deck$suit
Hi Benoit,
You can select rows from deck matched in aCard using
merge(deck, aCard)
Selecting rows that don't match is bit more difficult. You could do
something like
isin <- apply(mapply(function(x, y) x %in% y, deck, topCard),
1,
all)
deck[!isin, ]
perhaps.
Alte
Hello,
Inline.
Às 14:50 de 03/01/2019, Benoit Galarneau escreveu:
Hi everyone,
I'm new to the R world.
Probably a newbie question but I am stuck with some concept with data
frame.
I am following some examples in the "Hands-On Programming with R".
In short, how can I access/filter items in a
Hi everyone,
I'm new to the R world.
Probably a newbie question but I am stuck with some concept with data frame.
I am following some examples in the "Hands-On Programming with R".
In short, how can I access/filter items in a data frame using a variable.
One example consists of manipulating elem
The easiest way to install RQuantLib on Ubuntu is to use the
pre-compiled binaries from Michael Rutter's PPA. See the instructions
here: https://cran.r-project.org/bin/linux/ubuntu/README.html.
You will want to install the r-cran-rquantlib package after you've
added the PPA to your sources list.
17 matches
Mail list logo