Dear R-Help,
I asked this question on StackOverflow,
http://stackoverflow.com/questions/41083293/in-r-how-do-i-define-a-function-which-is-equivalent-to-deparsesubstitutex
but thought perhaps R-help would be more appropriate.
I want to write a function in R which grabs the name of a variable
fro
The Log.lik function below returns the value '-INF' when it should return
the value -5836.219. I can not figure out the error, does anyone have any
suggestions?
rm(list=ls())
library(ssmrob)
data(MEPS2001)
attach(MEPS2001)
n<-nrow(MEPS2001)
Log.lik <- function(par,X,W,y){
Dear all,
I want to assign a list to one column of data.frame where the name of the column
is a variable. I tried the following:
Using R version 3.3.2
> df <- iris[1:3, ]
> df
# Sepal.Length Sepal.Width Petal.Length Petal.Width Species
# 1 5.1 3.5 1.4 0.2 setos
Dear, Carina
Thanks for your adivice.
It worked finally as below:
Sys.setenv(http_proxy="http://proxyserver:port";)
options(repos="http://cloud.r-project.org/";)
options(download.file.method="internal")
J J
- Original Message -
>From: Carina Salt
>To: jim holtman
>Cc: qwertyui_per.
On Dec 10, 2016 4:59 PM, "Chris Evans" wrote:
Thanks to both Jeff and Ista for your inputs some days back. I confess I
was _indeed_ too tired to be thinking well and laterally, and even to be
copying things into Emails successfully.
I have since had more sleep (!) and I have read ?`[[`, gone ba
On 10/12/2016 10:13 AM, Witold E Wolski wrote:
To which document
"See section 'Good practice' in '?data'."
refers too?
It refers to the help page for the data() function, which you see by
typing ?data in the console.
Duncan Murdoch
Found the following calls to data() loading into the gl
Thanks to both Jeff and Ista for your inputs some days back. I confess I was
_indeed_ too tired to be thinking well and laterally, and even to be copying
things into Emails successfully.
I have since had more sleep (!) and I have read ?`[[`, gone back to the
pertinent parts of "Introduction to
In addition to Bert's suggestion, you might want to check here...
http://r-pkgs.had.co.nz/man.html#man-data
> On Dec 10, 2016, at 10:25 AM, Bert Gunter wrote:
>
> Please post this to the R-package-devel list, not here.
>
>
> -- Bert
> Bert Gunter
>
> "The trouble with having an open mind is
Type
?data
at the R console.
--
Sent from my phone. Please excuse my brevity.
On December 10, 2016 7:13:01 AM PST, Witold E Wolski wrote:
>To which document
>"See section 'Good practice' in '?data'."
>
>refers too?
>
>
>Found the following calls to data() loading into the global
>environment:
Please post this to the R-package-devel list, not here.
-- 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 Sat, Dec 10, 2016 at 6:47 AM, Witold E Wolski
To which document
"See section 'Good practice' in '?data'."
refers too?
Found the following calls to data() loading into the global environment:
File 'bibliospec/R/annotateClass.R':
data("AminoAcids")
See section 'Good practice' in '?data'.
Thanks
--
Witold Eryk Wolski
___
I am wrting a package and would like to be able to export it to access it with:
packagename::dataset
This is how my roxygen doc for the data object looks like:
#' Data frame with amino acid masses
#'
#' @name AminoAcids
#' @docType data
#' @keywords data
#' @export
NULL
It does end up in the nam
Francesca:
It is hard to know what you might mean by "organize the results in an
efficient way." Some would say that a list of models already does this
for you.
The task you described is fairly simple, so I believe you would
benefit by going through an R tutorial or two to improve your R
programm
Dear Francesca
i usually do this by collecting the models into a list not a vector
model <- list(ra = ra, rb = rb, and so on
and then I use lapply or sapply to process the model
lapply(mode, function(x) coef(x)[1])
or something like that, not tested
On 10/12/2016 07:32, francesca Pancotto wr
14 matches
Mail list logo