Hello,
Inline.
Às 05:30 de 01/08/2020, Ana Marija escreveu:
do you think that this is useful output from Basics of R?
Actually, the answer will be yes, I do. Explanation follows.
load("paired_example.Rdata")
str(rawdata)
num [1:4482, 1:10] 46 4 3 48 1 4 0 60 0 12 ...
- attr(*, "dimname
do you think that this is useful output from Basics of R?
> load("paired_example.Rdata")
> str(rawdata)
num [1:4482, 1:10] 46 4 3 48 1 4 0 60 0 12 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:4482] "gene1" "gene2" "gene3" "gene4" ...
..$ : chr [1:10] "a.cancer" "b.cancer" "c.cancer" "d.ca
Sarah has explained all.
I agree with her about the need for tutorials also. This list cannot
substitute for such homework on your own.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom Co
It seems that "treatment" and "patient" are just vectors.
> treatment
[1] "treat" "treat" "treat" "treat" "treat" "control" "control"
[8] "control" "control" "control"
> patient
[1] "a" "b" "c" "d" "e" "a" "b" "c" "d" "e"
On Fri, Jul 31, 2020 at 9:53 PM Ana Marija wrote:
>
> Hi Bert
Hi Bert,
it gives me this:
> a=load("paired_example.Rdata")
> str(a)
chr [1:3] "rawdata" "treatment" "patient"
I don't know how to extract "treatment" for example in a data frame.
I tried this but of no help.
> b=a[[2]]
> b
[1] "treatment"
> str(treatment)
chr [1:10] "treat" "treat" "treat"
Hi Ana,
You are making this far too complicated.
load("paired_example.Rdata")
ls()
str(rawdata)
str(treatment)
str(patient)
load() puts all of them into your current environment. If you assign
the result of load() to something, in your example a, that object
contains the names of the objects,
What does
str(a)
give?
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Jul 31, 2020 at 7:18 PM Ana Marija
wrote:
> Hello,
>
> I have this file:
> > a=l
Hello,
I have this file:
> a=load("paired_example.Rdata")
> a
[1] "rawdata" "treatment" "patient"
I can extract "rawdata" with:
dat<-local(get(load("paired_example.Rdata")))
Can you please advise how would I extract in data frame "treatment"
and "patient"?
Thanks
Ana
___
On 2020-07-31 10:07 -0500, Joshua Ulrich wrote:
| On Fri, Jul 31, 2020 at 9:55 AM Rui Barradas wrote:
| | Às 15:44 de 31/07/2020, Michael Dewey escreveu:
| | | Dear Pedro
| | |
| | | Some comments in-line
| | |
| | | On 30/07/2020 21:16, Pedro páramo wrote:
| | | | Hi all,
| | | |
| | | | I attach
Hi Pedro,
Another 'best practice' and polite thing to do is link to other places
you may have cross-posted. That will give people the opportunity to
see if your questions has been answered in another forum.
I saw your post on R-SIG-Finance
(https://stat.ethz.ch/pipermail/r-sig-finance/2020q3/014
Hello,
I second Michael's opinion. When the post's code is very long, there is
a tendency to have less answers.
Please post the output of
dput(head(bwchist, 30))
It's much shorter code and it recreates the data so we will be able to
see what's wrong and try to find a solution.
Hope this
Dear Pedro
Some comments in-line
On 30/07/2020 21:16, Pedro páramo wrote:
Hi all,
I attach my code, the think is I want to make a bar plot the last variable
called "bwchist"
so the X axis are "Accion" and the y axis are "reval" values.
I have prove class(bwchist) and says dataframe but its
Hi all,
I attach my code, the think is I want to make a bar plot the last variable
called "bwchist"
so the X axis are "Accion" and the y axis are "reval" values.
I have prove class(bwchist) and says dataframe but its still a list because
it says me
I have prove to unlist, but it doesnt work
13 matches
Mail list logo