Displaying 20 results from an estimated 600 matches similar to: "How to import file from excle?"
2012 Mar 15
2
Importing multiple worksheets from one Excle/ csv file into R
Dear R experts,
I am trying to import some data from some Excle files into R. My Excle file
contains about 50 sheets.
One solution I can think about is to convert my Excle file into csv file
first and then load data into R using 'read.csv'.
But it seems to me that 'read.csv' only supports reading one sheet (or 'one
file') each time, so that seems I have to create 50 csv
2004 May 04
2
I have some problem about "save and open"
Hello R-help
I use R program on linux.
and when I would like to quick R, then I type q()
after than has question "Save workspace image? [y/n/c]:"
when I ans "y" , why not to ask about name of file.
and when I would like to open last file , how can I do?
thanks for your help.
and sorry if my English not so good. I'm Thai people and I know
English a little.
Mathinee
2006 Mar 13
1
Density Estimation
Hallo
I am trying to use the package LocFit to follow the example given in an
Introductory note of C Loader concerning density estimation. It involves
the "geyser" dataset (107 observations on durations, inlc in the
package).
I have tried the following (using the latest version of R):
fit.of <- locfit(~geyser,flim=c(1,6),alpha=c(0.15,0.9))
plot(fit.of,get.data=T,mpv=200)
This
2017 Apr 27
2
R-3.4.0 and recommended packages
On 27 April 2017 at 12:01, Johannes Ranke wrote:
|
| > so it seems to me this must affect all packages in Debian sid that were
| > built before the release of R 3.4.0!
|
| or rather before 14 April 2017, which is when R from revision r72510 was
| uploaded to sid as pre-release candidate.
Another example with KernSmooth:
> library(KernSmooth)
KernSmooth 2.23 loaded
Copyright
2019 Apr 05
1
subscripting a terms object
Someone sent me a bug report for survival2.44.1-1 that involves a model with both cluster
and offset.? It turns out to be a 3 part issue with [.terms and my own untangle.specials
routine.?? I've spent an evening sorting out the details.
? 1. The delete.response() function doesn't remove the response from the dataClasses
attribute, which leads to a later failure in [.terms for
2004 Jul 28
3
where is "average shifted histogram"?
Hello!
In the book Modern Applied Statistics with S (4th ed),
section 5.6 the concept of the "average shifted
histogram" or ASH is mentionend. Also it is mentioned
in the same section "The code used is in the scripts
for this chapter" (from figure caption 5.8, analysis
of the geyser duration data).
*However*, I have trouble finding the code for that
function! Admittedly, I am a
2009 Dec 02
2
Joint density kde2d works improperly?
Dear all,
Please, look at the following code:
attach(geyser)
f1 <- kde2d(duration, waiting, n = 5)
a <- 0
for (i in 1:5){
for (j in 1:5){
a <- a + f1$z[i,j]
}
}
As far as I understood from Help kde2d returns matrix elements of which are
values of joint probability mass function Pr(X=x,Y=y) therefore, sum of its
elements should sum to 1.
Which is not the case from my check.
Where is
2002 May 19
3
How to shade part of a density plot
I'm trying to shade part of a density plot. The code I'm trying (using
the Old Faithful data as an example) is something like this:
# The Old Faithful geyser data
data(faithful)
d <- density(faithful$eruptions, bw = "sj")
plot(d)
polygon(d[d$x>4], col = "wheat")
I expected that the part of the curve to the right of 4 on the x axis
should be shaded, but nothing
1999 Oct 08
1
floor(NaN) problem fixed in massdist.c (PR#291)
Full_Name: Naoki Takebayashi
Version: 0.65.0+R-release.diff (Oct 6, 1999)
OS: Linux/Alpha
Submission from: (NULL) (129.79.224.171)
This will fix the "problem 2 (crash in fft)" in Bug ID #277
On Linux/Alpha, make check failed because R could not handle the following
example in base-Ex.R
##___ Examples ___:
# The Old Faithful geyser data
data(faithful)
:
:
## Missing values:
x <-
2007 Nov 26
2
2d Joint Density Plot
Hi all,
I'm fairly new to R, so I'm still trying to feel out what is available to
me. I would like to be able to plot joint density in a two dimensional plot
where density is indicated by color or darkness gradients, like a 2d color
coded topographic map. Ideally, the output would be something I could then
plot other points or lines on.
Currently, I'm calculating joint density with
2004 Aug 03
1
Using MASSv3's example from 8.7 in R?
Dear list!
I am interested in learning about MLE and I wonder whether it is possible
to use the examples for maximum likelihood estimation given in 8.7 in
MASSv3 with R? AFAIU R does not have a direct replacement for S-PLUS's
ms() which the examples use for the fitting, but optim() may be of help
for me. However, I am not sure how I can convert the use of ms() using
optim()--is there an
1998 Jun 03
0
R-beta: locfit package.
I was wondering if someone could help me with a problem getting locfit running.
I am running Digital Unix 3.2D on an alphastation, with R 0.61.1
I downloaded the CRAN distribution of locfit. I had no problems installing it
with R INSTALL (I installed it into my library rather than the default base
library; the output is attached at the end of this email message).
I then tried to test it with the
2018 Mar 04
2
problema con shiny
Carlos el código es el ejemplo de shiny:
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
#setwd("C:/curso 2017-18/curso R/shiny/prueba1")
library(shiny)
# Define UI for application that draws a histogram
ui <-
2017 Apr 27
0
R-3.4.0 and recommended packages
Am Donnerstag, 27. April 2017, 06:32:13 schrieb Dirk Eddelbuettel:
> On 27 April 2017 at 12:01, Johannes Ranke wrote:
> | > so it seems to me this must affect all packages in Debian sid that were
> | > built before the release of R 3.4.0!
> |
> | or rather before 14 April 2017, which is when R from revision r72510 was
> | uploaded to sid as pre-release candidate.
>
2017 Apr 27
2
R-3.4.0 and recommended packages
Am Dienstag, 25. April 2017, 11:21:31 schrieb Dirk Eddelbuettel:
> On 25 April 2017 at 16:11, Johannes Ranke wrote:
> | This looks similar to what I got this morning when I tested my
> | (unreleased)
> | backport of R 3.4.0 to Debian jessie. My test was
> |
> | library(MASS)
> | example(rlm)
> |
> | and there was an object that was not found. I am on a train on the way
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
2005 Jan 10
1
I have some problem about GLM function.
Dear R-Help
I 'm using GLM function to Modelling. But when I used Gamma Family in GLM, then I can't run.
It was error
> glm(DamageRatio~MinTEMP+MaxTEMP+DayRain+Group1+Group2+Group3+Year,family=Gamma())
Error in eval(expr, envir, enclos) : Non-positive values not allowed for the gamma family
Can Gamma Distribution use data begin 0 ?
and then when I used GLM in S-Plus Program then
2017 Apr 27
3
R-3.4.0 and recommended packages
On 27 April 2017 at 13:58, Johannes Ranke wrote:
| Am Donnerstag, 27. April 2017, 06:32:13 schrieb Dirk Eddelbuettel:
| > On 27 April 2017 at 12:01, Johannes Ranke wrote:
| > | > so it seems to me this must affect all packages in Debian sid that were
| > | > built before the release of R 3.4.0!
| > |
| > | or rather before 14 April 2017, which is when R from revision r72510
2018 Mar 05
2
problema con shiny
De acuerdo Carlos pero en mi ordenador no funciona y me da el error que he comentado.
Muchas gracias por tu colaboración.
Saludos,
Juan
El 04/03/2018 a las 20:09, Carlos J. Gil Bellosta escribió:
Corre perfectamente en mi máquina si borro la última línea (print(environment(show))).
Simplemente, he creado un directorio vacío (/tmp/prueba), he copiado el código (menos esa última línea) en el
2007 Apr 20
1
Estimating a Normal Mixture Distribution
Hi everyone,
I am using R 2.4.1 on a MacOS X ("Tiger") operating system. In the
last few day I was trying to estimate the parameters of a mixture of
two normal distributions using Maximum Likelihood.
The code is from Modern Applied Statistics with S (4th edition),
chapter 16 ("Optimization"), the dataset is available under MASS in
R. Unfortunately, when I tried out the