Hi Javad,
You have a number of problems with your code, such as:
1. you should set df1 and df2 without factors
2. you define a function f(x,y) but the body of the function never refers
to x and y
The following code does what I think you are looking for:
df1 = data.frame(x1 = letters[1:26],x2 = NA
Do what we all do and learn how to create packages by reading the "Writing
R Extensions" manual; or spend time with a tutorial that shows how various
packages or IDE's such as the RStudio IDE simplify the process. See also
?package.skeleton and other R functions that can be used to assist you.
--
Isn't this much more on topic with the package development list?
--
David
> On Feb 15, 2019, at 6:37 AM, Dimitrios Stasinopoulos
> wrote:
>
> I would like to put a graphic background to a model diagnostic plot.
> The background is created with plot()/lines() but it takes time.
> My solution
Dear R users;
I am trying to combine 2 dataframes with different rows, 26 and 6 rows. The
first column of both dataframe has something in common, and I want to
compare the first column of the df1 with first column of the df2 to see if
they are same or not. Then if they were same, the second column
I would like to put a graphic background to a model diagnostic plot.
The background is created with plot()/lines() but it takes time.
My solution was to save the plots as functions using splinefun().
Those saved function can be put in a .RData file using load() or .rds using
saveRDS().
My qu
Read the posting guide, please, paying particular attention to how to
provide reproducible data, e.g. via ?dput. You are much more likely to get
useful help if you do what it recommends and provide data for people to
work with.
You also should provide code showing us what you tried. You appear not
Hello all, I have another question. I'm working with the following dataset:
plotplant leaf_number sen_score plot_laiplant_lai
lai_score leaf_num
104 5 1 90 104 1 82 1
104 5 2 90 104 1 167
Hi Jeff and David.
Yes, updating all my Pkgs has done the trick.
I will remember to try that first next time.
As always I appreciate your help.
Thank you.
WHP
From: Jeff Newmiller
Sent: Friday, February 15, 2019 10:48 AM
To: r-help@r-project.org; David L Carlson ; Bill Poling
; r-help (r-
On Fri, 15 Feb 2019, Ista Zahn wrote:
Install udunits.
Ista,
Yep. Installing that package allowed the chain to build. Much appreciated.
Best regards,
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/m
On Fri, 15 Feb 2019, Ista Zahn wrote:
Install udunits. If you don't know how to do that in slackware go ask on a
slackware forum.
Ista,
Interesting. This must be a new dependency because prior versions of units
didn't require it. However, SlackBuilds.org has that package so I'll install
it th
On Fri, 15 Feb 2019, Bert Gunter wrote:
You *might* do better posting this on r-sig-debian and/or r-sig-fedora,
especially as this is not a question about R programming per se, which
makes it off topic for this list, but more on topic for those lists.
Bert,
Since I run only Slackware I'm no
Hi Rich,
Install udunits. If you don't know how to do that in slackware go ask
on a slackware forum.
Best,
Ista
On Fri, Feb 15, 2019 at 10:58 AM Rich Shepard wrote:
>
> Running R-3.5.2 on Slackware-14.2, using my script that updates installed
> packages found four that failed. My web searches d
You *might* do better posting this on r-sig-debian and/or r-sig-fedora,
especially as this is not a question about R programming per se, which
makes it off topic for this list, but more on topic for those lists.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep c
Running R-3.5.2 on Slackware-14.2, using my script that updates installed
packages found four that failed. My web searches did not find relevant hits,
and only the last build failure is explained by the build failure of a
specific dependency. The results displayed are:
ERROR: dependency ‘sf’ is n
Another possible issue could be some outdated packages... be sure to update all
packages.
On February 15, 2019 7:05:44 AM PST, David L Carlson wrote:
>I'm not getting any error on that line in Windows 10. I did not try
>running anything past that line.
>
>Have you tried restarting R and clearing
I'm not getting any error on that line in Windows 10. I did not try running
anything past that line.
Have you tried restarting R and clearing your environment?
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352
> I am having an issue with creating a code in which i can hold information such
> as the author of a paper, the year of publication, and the title.
This doesn't really tell me what the trouble is. But ...
> Also would like
> to add into this data frame a logical variable which would show some
>
As a practical matter, you can't treat POSIXlt as a list. The
documentation could be clearer about this. ?DateTimeClasses says
"Class ‘"POSIXlt"’ is a named list of vectors", and then later, "Note
that the internal list structure is somewhat hidden, as many methods
(including ‘length(x)’, ‘print(
sessionInfo()
#R version 3.5.2 (2018-12-20)
#Platform: x86_64-w64-mingw32/x64 (64-bit)
#Running under: Windows >= 8 x64 (build 9200)
Hello I am working through this tutorial
https://www.r-bloggers.com/10-tips-for-choosing-the-optimal-number-of-clusters/
And I run into an error almost immediately
Many thanks Bill Dunlap.
You are correct that `lapply` calls `as.list`, which I should have seen if I
had looked a little harder.
Whether that would have led me to locate `as.list.POSIXlt` is another matter.
Best wishes.
From: William Dunlap
Sent: 14 February 2019 20:03
To: Newell, Paul
Cc:
> Aaron Lun
> on Sun, 10 Feb 2019 15:22:17 + writes:
> Dear list,
> The Matrix package exhibits some unexpected behaviour in its arithmetic
> methods for the edge case of a sparse matrix with a dimension of zero
> length. The example below is the most illustrative,
Hi all,
I have correlated binary data which have around 2000 columns. I need to
simulate data like them I have marginal probability vector and correlation
matrix.
I tried bindata lib but didn’t work with me as l have some negative correlation
and I tried also mipfp but give error with using all
22 matches
Mail list logo