Apart from allowing the twitter app access, I didn't do anything to
adjust the settings other than editing the ~/.Renviron file which set up
the environment variable/s.
It appears to me that they are appropriate since they work if I use R
from the bash prompt or Rstudio. The problem is apparan
On April 8, 2020 1:17:38 PM PDT, Ana Marija wrote:
| Hi,
|
| I have a data frame like this:
Or ... *drum-roll* ... you could use plain
old indexing. Have a look:
a <-
"FIDLASER2 CURRELIGPLASER RTNPTHY
fam1000_G1000 1 1 1 1
fam1001_G1001 1 1 1
>I would like to create a new column called PHENO which would satisfy
>these
>conditions:
>
>if CURRELIG=1 and RTNPTHY=1 than PHENO=1
>if PLASER=2 than PHENO=2
>otherwise is -9
I assume that if CURRELIG==1 and RNPTHY==1 and PLASER==2 then PHENO should
be 1. Or should that case flag a data error?.
Now that you have been shown how to do this, post your (non-working) code next
time. And configure your email program to send plain text so we will see what
you saw.
a$PHENO <- ifelse( a$CURRELIG==1
& a$RTNPTHY==1
, 1
, ifelse( a$PLASER==2
Hi,
I have a data frame like this:
> head(a)
FID LASER2 CURRELIG PLASER RTNPTHY
1 fam1000_G1000 11 1 1
2 fam1001_G1001 11 1 1
3 fam1003_G1003 21 2 2
4 fam1005_G1005 11 1 2
5 fam1009_G1009
Hi Ashim,
read_chunk() can only read R scripts.
Regards,
Yihui
--
https://yihui.org
On Wed, Apr 8, 2020 at 10:24 AM Ashim Kapoor wrote:
>
> Dear Yihui,
>
> Can we not 1st use read_chunk to import an Rmd and then do knit_code()$get ?
> I could be mistaken. Please correct me if I am wrong.
>
> B
The OP clearly hasn't followed the excellent documentation... this is not a
maintainer problem. It is the act of printing the completed object that puts a
file on disk.
However, the package author recommends in the README that help be requested
from stackoverflow, as the mailing list Posting Gu
But the OP explicitly notes that the read_docx package does *not* write
files and asks whether there are *other* packages or functions that provide
that functionality. It still seems to me that the ReporteR maintainer might
be the best place to go for that info, although there is certainly no
assur
But before hassling the maintainer the OP should read the package vignettes and
run some examples... read_docx does not write to any files, so complaining that
it doesn't will be fruitless.
On April 8, 2020 9:31:41 AM PDT, Bert Gunter wrote:
>This sounds like the sort of specialized question t
This sounds like the sort of specialized question that should be directed
to the maintainer (?maintainer) rather than to a general Help list such as
this.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathe
Dear All,
Mac Catalina - R 3.6.3 - all up-to-date packages.
I would like to re-create the functionality which was found in the package
{ReporteRs} by creating a .docx file in a folder on my computer from within
R - which can subsequently be used by the {officer} function read_docx.
The function re
Dear Yihui,
Can we not 1st use read_chunk to import an Rmd and then do knit_code()$get
? I could be mistaken. Please correct me if I am wrong.
Best,
Ashim
On Wed, Apr 8, 2020 at 8:47 PM Yihui Xie wrote:
> And please note that knitr::knit_code$get() only works (i.e. returns a
> named list of co
And please note that knitr::knit_code$get() only works (i.e. returns a
named list of code chunks) inside a knitr document when the document
_is being knitted_. It doesn't work outside the document. Ideally, you
should use the document parser of knitr, but it is not exported.
Regards,
Yihui
--
http
Hi again,
ok, I see. How about repeating the steps described in the tutorial on
your second computer instead of cloning the settings from the computer
#1? There might be some other settings not correctly copied.
HTH,
Kimmo
ke, 2020-04-08 kello 19:02 +1200, Patrick Connolly kirjoitti:
> Hello Kim
Dear Sigbert,
Also see this :-
https://www.rdocumentation.org/packages/knitr/versions/1.28/topics/knit_code
Best,
Ashim
On Wed, Apr 8, 2020 at 1:13 PM Ashim Kapoor wrote:
> Dear Sigbert,
>
> Please see this.
>
> https://bookdown.org/yihui/rmarkdown-cookbook/purl.html
>
> Best,
> Ashim
>
> On
Dear Sigbert,
Please see this.
https://bookdown.org/yihui/rmarkdown-cookbook/purl.html
Best,
Ashim
On Wed, Apr 8, 2020 at 1:02 PM Sigbert Klinke
wrote:
> Hi,
>
> exists a possibility to extract chunks from a R Markdown file and to
> return them as (named) list in R?
>
> Thanks Sigbert
>
> --
Hi,
exists a possibility to extract chunks from a R Markdown file and to
return them as (named) list in R?
Thanks Sigbert
--
https://hu.berlin/sk
https://hu.berlin/mmstat3
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:/
Hello Kimmo,
Yes. I did that and it worked fine -- as far as it goes. But it
didn't cover what to do when using the same twitter account on a
computer with a different user name -- which is what my question was
about.
On Wed, 08-Apr-2020 at 08:55AM +0300, K. Elo wrote:
|> Hi!
|>
|> Have you
18 matches
Mail list logo