Displaying 20 results from an estimated 6000 matches similar to: "Help in R"
2017 Nov 05
2
Help in R
R can have a bit of a learning curve... There are several ways to achieve
your goal - depending on what you want:
test_df <- data.frame(Movie = letters, some.value = rnorm(26))
test_df$Movie[1:10]
test_df$Movie[sample(c(1:26), 10)]
test_df[sample(c(1:26), 10), ]
Do read a tutorial or two on R - "Introduction to R" as suggested by David
or something else - so you can explain the
2017 Nov 05
0
Help in R
> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help at r-project.org> wrote:
>
>
> Hey,
>
> I am a beginner in R.
>
> How do I read last 10 values from column- Movie, from a dataset?
Some questions are so simple that they strongly suggest no prior effort at self-leanrning. In such cases the usual recommendation given at Rhelp is that you read an
2017 Nov 05
0
Help in R
Hello,
Also
tail(test_df$Movie, 10)
Hope this helps,
Rui Barradas
Em 05-11-2017 19:18, Ulrik Stervbo escreveu:
> R can have a bit of a learning curve... There are several ways to achieve
> your goal - depending on what you want:
>
> test_df <- data.frame(Movie = letters, some.value = rnorm(26))
>
> test_df$Movie[1:10]
>
> test_df$Movie[sample(c(1:26), 10)]
>
>
2017 Dec 25
2
LSD-test
The model should be class aov or lm and my model class is aovlist.
tried tidy from broom library but did not work. To make it class aov,
I had to remove the error term;
model <- aov(Rotationdata_R$`GY(Mg/ha)`~Rep+code*as.factor(Nitrogen),data=Rotationdata_R)
Ahmed Attia, Ph.D.
Agronomist & Soil Scientist
On Mon, Dec 25, 2017 at 7:38 PM, David Winsemius <dwinsemius at
2017 Nov 02
2
"prob" package alternative
Thanks. I found that, and installed it and got the same message. Here:
RTools version 3.4
install.packages("fAsianOptions_3010.tar.gz", dependencies=TRUE,
repos=NULL, type = "source")
Installing package into ?C:/Users/Tlk7/Documents/R/win-library/3.4? (as
?lib? is unspecified) Warning: invalid package 'fAsianOptions_3010.tar.gz'
Error: ERROR: no packages specified
2017 Nov 02
2
"prob" package alternative
Rtools is not available for the current version of R.
What I'm looking for is an alternative package or how others have managed
to create workarounds.
On Thu, Nov 2, 2017 at 4:25 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Nov 2, 2017, at 1:09 PM, Tiby Kantrowitz <tlkantro at gmail.com> wrote:
> >
> > Yes, that is exactly what I was doing
2017 Dec 09
2
Remove
> On Dec 8, 2017, at 4:48 PM, Ashta <sewashm at gmail.com> wrote:
>
> Hi David, Ista and all,
>
> I have one related question Within one group I want to keep records
> conditionally.
> example within
> group A I want keep rows that have " x" values ranged between 15 and 30.
> group B I want keep rows that have " x" values ranged
2018 Apr 06
3
Obtain gradient at multiple values for exponential decay model
> On Apr 6, 2018, at 8:03 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>
>> On Apr 6, 2018, at 3:43 AM, g l <gnulinux at gmx.com> wrote:
>>
>>> Sent: Friday, April 06, 2018 at 5:55 AM
>>> From: "David Winsemius" <dwinsemius at comcast.net>
>>>
>>>
>>> Not correct. You already have
2017 Sep 07
2
ISO3 code to 7 continents names
df is a data frame consisting of one variable (iso3 codes) such as
USA
RUS
ARG
BGD
ITA
FRA
Some of these iso3 codes are repeated and I would like the corresponding
continent name, the countrycode package does not seem to distinguish
between North and South America. Thanks.
Sincerely,
Milu
On Thu, Sep 7, 2017 at 9:00 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> >
2017 Dec 07
4
Remove
> On Dec 6, 2017, at 4:27 PM, Ashta <sewashm at gmail.com> wrote:
>
> Thank you Ista! Worked fine.
Here's another (possibly more direct in its logic?):
DM[ !ave(DM$x, DM$GR, FUN= function(x) {!length(unique(x))==1}), ]
GR x y
5 B 25 321
6 B 25 512
7 B 25 123
8 B 25 451
--
David
> On Wed, Dec 6, 2017 at 5:59 PM, Ista Zahn <istazahn at gmail.com> wrote:
2017 Nov 02
2
"prob" package alternative
Yes, that is exactly what I was doing two days ago.
Warning in install.packages :
installation of package ?fAsianOptions_3010.79.tar.gz? had non-zero exit
status
Which is what a reading of the explanation for why "prob" was retired leads
one to expect. Do you have some other suggestion about how to get it to
work? I notice you're not using Windows which might have a relationship
2017 Dec 09
0
Remove
Hi David, Ista and all,
I have one related question Within one group I want to keep records
conditionally.
example within
group A I want keep rows that have " x" values ranged between 15 and 30.
group B I want keep rows that have " x" values ranged between 40 and 50.
group C I want keep rows that have " x" values ranged between 60 and 75.
DM <-
2018 Apr 06
2
Obtain gradient at multiple values for exponential decay model
> Sent: Friday, April 06, 2018 at 5:55 AM
> From: "David Winsemius" <dwinsemius at comcast.net>
>
>
> Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See:
>
> ?predict
>
The ? details did not mention interpolation explicity; thanks.
> The
2018 Feb 14
2
Fleming-Harrington weighted log rank test
Hi all,?
The survdiff() from survival package has an argument "rho" that implements Fleming-Harrington weighted long rank test.?
But according to several sources including "survminer" package (https://cran.r-project.org/web/packages/survminer/vignettes/Specifiying_weights_in_log-rank_comparisons.html), Fleming-Harrington weighted log-rank test should have 2 parameters
2017 Nov 02
0
"prob" package alternative
> On Nov 2, 2017, at 3:46 PM, Tiby Kantrowitz <tlkantro at gmail.com> wrote:
>
> Thanks. I found that, and installed it and got the same message. Here:
>
> RTools version 3.4
>
> install.packages("fAsianOptions_3010.tar.gz",
I don't see a path to that file's location.
The expansion from pkg_version.tar.gz might be automatic, but I do generally
2017 Dec 25
0
LSD-test
> On Dec 25, 2017, at 2:09 PM, Ahmed Attia <ahmedatia80 at gmail.com> wrote:
>
> The model should be class aov or lm and my model class is aovlist.
> tried tidy from broom library but did not work. To make it class aov,
> I had to remove the error term;
>
> model <- aov(Rotationdata_R$`GY(Mg/ha)`~Rep+code*as.factor(Nitrogen),data=Rotationdata_R)
You seemed to have
2017 Nov 02
2
"prob" package alternative
Yes. That's the version I've been discussing that has non-zero exit status.
That situation is why CRAN retired the prob package. It's possible you
installed that library earlier in development and it's been "carried"
along. It no longer installs, now.
The problems with all of this seem to have started this month according to
the conversations. However, no one has
2017 Dec 06
3
Remove
Hi all,
In a data set I have group(GR) and two variables x and y. I want to
remove a group that have the same record for the x variable in each
row.
DM <- read.table( text='GR x y
A 25 125
A 23 135
A 14 145
A 12 230
B 25 321
B 25 512
B 25 123
B 25 451
C 11 521
C 14 235
C 15 258
C 10 654',header = TRUE, stringsAsFactors = FALSE)
In this example the output should contain group A and
2017 Nov 02
0
"prob" package alternative
> On Nov 2, 2017, at 2:14 PM, Tiby Kantrowitz <tlkantro at gmail.com> wrote:
>
> Rtools is not available for the current version of R.
Really? If true, I'm surprised and not able to help. I do see an Rtools34.exe at https://cran.r-project.org/bin/windows/Rtools/
--
David.
>
> What I'm looking for is an alternative package or how others have managed to create
2017 Sep 07
0
ISO3 code to 7 continents names
> On Sep 7, 2017, at 12:21 PM, Miluji Sb <milujisb at gmail.com> wrote:
>
> df is a data frame consisting of one variable (iso3 codes) such as
>
> USA
> RUS
> ARG
> BGD
> ITA
> FRA
>
>
> Some of these iso3 codes are repeated and I would like the corresponding continent name, the countrycode package does not seem to distinguish between North and