Hi
It seems to me that you misunderstand how objects (data.frames) in R work.
see in line
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of hoda
> rahmati via R-help
> Sent: Wednesday, February 24, 2016 3:39 PM
> To: r-help@r-project.org
> Subject: [R
I am not sure this is the right place to get help on this. The manual
was not actually part of R, I believe.
If you do not succeed in getting help here, you might try contacting
David Smith of Revolution Analytics (now part of Microsoft), who
blogged on this some years ago.
But there are very lik
> On 24 Feb 2016, at 22:12, Santosh wrote:
>
> Thanks all for your response.
> I didn't realize I posted in HTML.. I just typed an email as I usually
> do... how do I know whether it was sent in HTML? I had not changed any
> settings to send out in HTML format..
> Seems like you got the impressi
Dear Jim
thanks you for your kind help.
KNN - is K- Nearest Neighbor, is a technique used in Machine Learning.
attached you will find a CSV file dataset, my question is :
use the attached Dataset, Use majority guessing technique to evaluate KNN ?
this is the solution I came up with, but I didn't wo
Dear Sir/Madam:
Your web of "R Graphical Manual" is so wonderful! But the
URL(http://rgm.ogalab.net/RGM) cannot be found now, may I ask for your new
URL?
Thx for your reply!
Sincerely yours,
Abigail Chen
[[alternative HTML version deleted]]
__
Hi Alnazar,
I looked at your question yesterday and was unable to find what a
"majority guessing" function is. I think it may be related to the
"Pandemonium" model of decision making, but that doesn't get me very
far. Could you give us a hint as to what this function is?
Jim
On Wed, Feb 24, 2016
Thank you for the info. I did solve it using
unlist lapply strsplit functions.
On Wed, Feb 24, 2016 at 9:31 PM, Bert Gunter wrote:
> Have you gone through any R tutorials yet? I didn't entirely
> understand your question (and so cannot answer), but this sounds like
> a basic subsetting/data wr
A combination of subsetting and ?substr should get you close to a solution.
If the middle sequence you referenced isn't always the same distance from
the first character, you may have to involve regular expressions to find
"the middle".
On Wednesday, February 24, 2016, Bert Gunter wrote:
> Have
Have you gone through any R tutorials yet? I didn't entirely
understand your question (and so cannot answer), but this sounds like
a basic subsetting/data wrangling task that you should know how to do
if you have gone through a basic tutorial or two.
See also ?subset, ?"[" (basic indexing) and pos
Hi all,
One of the the columns of a data frame has a value such like
S-2001-yy
S-2004-xx
F-2007-SS
and so on
based on this column (variable) I want subset a data frame where the
middle value of this variable is between 2001 to 2004.
THE END RESULT THE DATA FRAME WILL BE THIS.
AAA
Hi all,
I have an issue running png after loading various packages. After running
library(drc)
library(RCurl)
library(XLConnect)
library(ROracle)
png("test.png")
dev.off()
The file fails to write, and I get
Warning messages:
1: In png("test.png") :
unable to load shared object '/usr/lib64/R/l
Thanks all for your response.
I didn't realize I posted in HTML.. I just typed an email as I usually
do... how do I know whether it was sent in HTML? I had not changed any
settings to send out in HTML format..
Seems like you got the impression based on the HTML tag like message of
"simpleError"...
On Wed, Feb 24, 2016 at 3:47 PM, Rolf Turner wrote:
>
> (1) Do not post in html.
>
> (2) This is the R-help forum, not the Rstudio help forum.
>
> (3) The call
>
> a1 <- quote(ID)
>
> works just fine under R (not Rstudio) on my Linux box.
Works fine on my Linux machine too, even in Rstudio.
(1) Do not post in html.
(2) This is the R-help forum, not the Rstudio help forum.
(3) The call
a1 <- quote(ID)
works just fine under R (not Rstudio) on my Linux box.
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext
I will suggest that you read the documentation on t.test.
?t.test
Dan
Daniel Nordlund, PhD
Research and Data Analysis Division
Services & Enterprise Support Administration
Washington State Department of Social and Health Services
> -Original Message-
> From: R-help [mailto:r-help-bou
On 25/02/16 00:11, Erich Neuwirth wrote:
?data
will show you that data is a reserved word!
That is simply not true. There is no mention in help for data of "data"
being a reserved word.
Moreover, if "data" *were* a reserved word " <- " wouldn't work either.
Compare:
data <- 42 # No pr
Sounds like a homework problem. If so, this list has a "no homework"
policy and you should ask your professor or the TA for help.
Cheers,
Bert
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 "
Hi Sarah
I didn't know the function dput!
I checked the formatting issue by doing simple arithmetic operations on the
data. But with the dput function these issue turned much more clear.
Here goes the result... I just change the "head" by the "tail" function, so
we must have exactly the same dat
Hi all,
I have a data set (mydata) containing 471 variables. One of the columns looks
as below
$ Sequence : Factor w/ 3 levels "","%Seq%gre",..: 2 2 2 2 2 2 2 2 2 2 ...
sequence contains %Seq%gre and %Seq%tse and I extract only %Seq%tse and add it
to my variables and plot a scatterplot of m
I have a data set as below
"temperature" "gender" "hr"
96.3 1 70
96.7 1 71
96.9 1 74
96.4 2 69
96.7 2 62
96.8 2 75
Gender code (1) means males and Gender code (2) means females.
I have to split the data by gender and then perform a* two-sample tes*t to
see whether the population means are equival
Dear Rxperts..
I noticed a puzzling behavior of 'quote' in Linux and Windows environment
based RStudio..
In Linux based RStudio ,
a1 <- quote(ID)
The error message I get is:
I dont get any error message when I do the same in Windows 7 based RStudio..
Could you please suggest how to use
Thanks for your very useful help!
It's working on my data (apply() to a list of lists )
All the best
Sergio
2016-02-24 17:02 GMT+01:00 David L Carlson :
> hsd.fit is list containing 1 element, a matrix called "wool:tension". It
> will be simpler if you extract the matrix and then use order(
hsd.fit is list containing 1 element, a matrix called "wool:tension". It will
be simpler if you extract the matrix and then use order() to get the matrix
sorted by p adj:
> table <- hsd.fit[["wool:tension"]]
> table[order(table[, 'p adj']), ]
difflwr uprp adj
A
"%in%" is a wrapper for match(), which uses hashing I believe
(correction welcome!),and so is generally very fast.
See ?Rprof for profiling R code to get timings. (Haven't used it
myself, so not sure how useful it would be for this situation).
-- Bert
Bert Gunter
"The trouble with having an o
Hello,
As decision trees require sorting the variable used for splitting a given
node, I'm trying to avoid having this recurrent sorting by only sorting all
numeric variable first (and only once).
My attempt in doing this is shown in "Solution 2" below, but although I get
the desired result I thi
Yes!
-- Bert
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 Wed, Feb 24, 2016 at 8:31 AM, Duncan Murdoch
wrote:
> On 24/02/2016 11:27 AM, Bert Gunter wrote:
Dear Carlos
On 24/02/2016 11:11, Carlos Gracida Juarez wrote:
Good morning, I have an issue with my computer in order to download a
package.
I've tried to download the "mosaicData" and by writing the command and
using the install packages tab, and in the first gives ma a warning
indication that
On 24/02/2016 11:27 AM, Bert Gunter wrote:
I would have assumed that age, etc. were vectors; but that's why I
said "almost" surely.
Okay, so you were confusing if () with ifelse().
Duncan Murdoch
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
a
I would have assumed that age, etc. were vectors; but that's why I
said "almost" surely.
-- Bert
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 Wed, Feb 24,
On 24/02/2016 11:18 AM, Bert Gunter wrote:
Almost surely no.
You are confusing "&&" with "&"
?"&"
I think Bob had it right...
Duncan Murdoch
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Bre
Almost surely no.
You are confusing "&&" with "&"
?"&"
-- Bert
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 Wed, Feb 24, 2016 at 8:10 AM, Robert Sherry
This should work:
if ( age > 4 && age < 8 && infection > 0 ) replacement = 2
Bob
On 2/24/2016 7:08 AM, Polychronis KOSTOULAS wrote:
Hi there,
apologies if this is easy. I want to write this condition:
If age is more than 4 years and less or equal to 8 years and infection
is positive the
?update.packages
Cheers,
Bert
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 Tue, Feb 23, 2016 at 11:47 PM, Sandeep Singha
wrote:
> Hi,
>
> I have newly in
Your question is too vague. What do you know about R? What do you know about
KNN? What have you tried so far? You need to teach yourself enough about R to
ask a more specific question. To get started, read some of these:
Contributed Documentation (https://cran.r-project.org/other-docs.html)
* "U
Okay, so if delta is high (say 0.5), the betas have to be extremely high
(around 5) to get good results. If delta is around 0.1, you can get good
results with smaller betas.
On Wed, Feb 24, 2016 at 9:21 AM, Abdel Halloway
wrote:
> I think your delta is too high. If you reduce your delta (0.1 for
I think your delta is too high. If you reduce your delta (0.1 for example),
you should be able to get good results.
On Mon, Feb 22, 2016 at 3:37 AM, Alexandre Suire
wrote:
> Hello Abdel,
>
> I'm trying to model the spread of two viruses between different states,
> which are i1 and i2, and i12 if
How did you "check it out"? I still suspect a formatting issue.
Please use dput() to provide a bit of data from each, eg
dput(head(x1))
dput(head(x2))
Sarah
On Tue, Feb 23, 2016 at 5:31 PM, Leonardo Miceli
wrote:
>
> Does anybody here had any problem with rounding using RSQLite?
>
> I have a qu
>'It's not unlikely that you will need a copy of "Writing R Extensions" at
>hand.'
+ a few bottles of Scotch.
It might be worth approaching rOpenSci https://ropensci.org/ to take
over resurrection/maintenance of this.
But, it seems others are in your predicament:
https://www.researchgate.net/p
Hmm, well I probably wouldn't suggest that you roll 3 years worth of bugs
in R back in, but it obviously is a conundrum, whether to do that or to fix
issues that have cropped up in a package over three years.
The author seems to have a beef with CRAN (we saw an outburst less than a week
ag
This is incredibly helpful, thank you all!
On 24 February 2016 at 04:02, Anthony Damico wrote:
> hi eiko, LaF is incompatible with survey data, that road is a dead-end.
> this code below will painlessly load brfss into R, review the link douglas
> sent for analysis examples and change `years.to.
Will you be able to fix the issues that crop up (or even notice the
issues) for these unsupported packages? (There _is_ a reason they
aren't in CRAN anymore.) That particular one (which is, indeed,
archived in CRAN) also depends on Rstem, which is also archived on
CRAN, and now (according to CRAN)
Hi Murdoch,
I solved my problem !
In fact, the problem is coming from Intel’s FORTRAN and a little from R :
You must tell FORTRAN that parameters are sent by reference and R can only work
with routine names in lower case and ending with ‘_’ (and this underscore must
not be written in the .for
Posting the same question in the space of a few hours is considered by many
to be very rude behavior. I have already replied to your previous message.
--Ista
On Feb 24, 2016 8:41 AM, "Sandeep Singha"
wrote:
> Hi,
>
> I have newly installed R version 3.2.3 and experiencing an issue where the
> pa
If you intend "standardization, use
scale(x, center = TRUE, scale = TRUE),
center for zero mean scale for SD=1
Best regards,
Sergio
2016-02-24 8:22 GMT+01:00 Alnazer Elbedairy :
> Dear all
> anyone know the function or syntax to get the Normalization for Data ?
> thanks
>
> [[altern
Hi
if((age>4 & age<8) & (infection >0)) a<-2
Wait, are you sure you are using R? Maybe you want ifelse.
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> Polychronis KOSTOULAS
> Sent: Wednesday, February 24, 2016 1:09 PM
> To: r-help@
Hi
What do you mean by normalisation?
Something like
http://stats.stackexchange.com/questions/70801/how-to-normalize-data-to-0-1-range
or
http://stackoverflow.com/questions/15215457/standardize-data-columns-in-r
or
https://stat.ethz.ch/pipermail/r-help//2012-October/336676.html
Cheers
Petr
Hi,
I have newly installed R version 3.2.3 and experiencing an issue where the
packages that I had been using in previous release aren't compatible in the
latest release.
I need you help to suggest how we could force the installation even if its not
supported or what is the workaround to move
Hi there,
apologies if this is easy. I want to write this condition:
If age is more than 4 years and less or equal to 8 years and infection
is positive then replacement is 2.
Can you help me the double END?
Thanks,
Polychronis
__
R-help@r-projec
Good morning, I have an issue with my computer in order to download a
package.
I've tried to download the "mosaicData" and by writing the command and
using the install packages tab, and in the first gives ma a warning
indication that the carpet of destiny is not rewritable, and in the second,
asks
Does anybody here had any problem with rounding using RSQLite?
I have a query which return around 100 thousands records of double
precision numeric values.
The query returns the numbers with 1 digit precision. But when I run the
same query but constrains the number of recorded values returned,
Dear all
anyone know the function or syntax to get the Normalization for Data ?
thanks
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
In addition to my previous message, DF_extract_clean.R is the program in the
dropbox folder that I am currently working on.
Doug
On Tuesday, February 23, 2016 4:02 AM, Jim Lemon
wrote:
Hi Doug,It is difficult for us to work out what is happening as we don't have
access to a toy data s
sorry for the confusion. I used y1,y2, instead of the real variable
names just for emailing purpose (to forward my question in a more clear
way). Tree, nothing...are the real variable names in my data set and i
actually used
Result<-myProbit(cbind(tree,nothing)~x1+x2..,data=mydata)
On
How I can use majority guessing function to evaluate KNN, if I have data saved
in CSV file
Alnazer Elbedairy
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting gu
I found another MOOC that teaches R at a more basic level than the one I am
currently taking. Actually, it was suggested by a classmate who discovered it
in her search for how to accomplish this homework assignment. It pointed me to
http://www.statmethods.net/interface/workspace.html which has a
Installing unsupported packages is usually not a good idea (there is a
reason they were removed...).
But if you must:
install.packages("devtools")
install_version("sentiment", '0.2')
Best,
Ista
On Wed, Feb 24, 2016 at 2:49 AM, Sandeep Rana
wrote:
> Hi,
>
> I have newly installed R version 3.2.
Thank you Jim also for introducing a shorter data frame.
However the HSD output I deal with is derived from a crossing factors
condition.
Could you kindly explain how could I sort results obtained from a
fm1 <- aov(breaks ~ wool * tension, data = warpbreaks)
hsd.fit<-TukeyHSD(fm1, "wool:tension",
On 24/02/2016 4:26 AM, Sigbert Klinke wrote:
Hi,
I have two scripts, one creates a data structure (a list of data frames
+ some attributes) and saves it via saveRDS.
The second script reads the RDS file (outside of any function) and
data <- readRDS (name)
works, but
data <<- readRDS (name)
You need to do
help("<-")
for a full explanation but in brief when you do <- it assigns locally
and since it could not find data locally it makes it for you but when
you do <<- it tries its very best to find data somewhere. Since data is
the name of a function which the authors of R have locked
?data
will show you that data is a reserved word!
> On 24 Feb 2016, at 11:02, Sigbert Klinke wrote:
>
> Hi,
>
> thanks, using
>
> test <<- readRDS (name)
>
> it worked. But why?
>
> Best Sigbert
>
> Am 24.02.2016 um 10:39 schrieb Michael Dewey:
>> Try calling it something other than data.
Hi
I am not an expert in this area. Your error says
> However, i get an error message "...Error in
> mvProbit(cbind(y1,y2,y3,y4,y5) ~:all dependent variables must be either
> 0,1,TRUE, or FALSE)
str(mydata) tells you that you have factors.
$ tree : Factor w/ 2 levels "FALSE","TRUE": 2
Hi,
thanks, using
test <<- readRDS (name)
it worked. But why?
Best Sigbert
Am 24.02.2016 um 10:39 schrieb Michael Dewey:
> Try calling it something other than data.
>
> On 24/02/2016 09:26, Sigbert Klinke wrote:
>> Hi,
>>
>> I have two scripts, one creates a data structure (a list of data fra
Hi,
I am a fortran developper, freelance, hired by a huge company to transform R
calculations to FORTRAN. I am discovering R.
Few years ago someone built FORTRAN dll using Lahey Fortran (perhaps only to
test his programs) and gfortran. I found two .bat files, one for Lahey :
ECHO compilation for
Try calling it something other than data.
On 24/02/2016 09:26, Sigbert Klinke wrote:
Hi,
I have two scripts, one creates a data structure (a list of data frames
+ some attributes) and saves it via saveRDS.
The second script reads the RDS file (outside of any function) and
data <- readRDS (nam
Hi,
I have two scripts, one creates a data structure (a list of data frames
+ some attributes) and saves it via saveRDS.
The second script reads the RDS file (outside of any function) and
data <- readRDS (name)
works, but
data <<- readRDS (name)
creates the error
Error: cannot change value o
Hi
Keep your reply to rhelp list. Others can come with better/more appropriate
solution.
Pardon me, but you used
Result<-mvProbit( cbind(y1,y2,y3,y4,y5) ~ x1+x2+x3+..+.x11,data=mydata)
but in mydata there are variables tree and nothing (according what you did tell
us).
So I am rather con
Hi Murdoch,
is.loaded is now working but the routine I call has a bug so I have to rebuilt
it !
I am posting a new question on this mailing list ...
Many thanks for your help
Jean
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à
l'intention exclusive des destin
67 matches
Mail list logo