similar to: matrix in data.frame

Displaying 20 results from an estimated 1000 matches similar to: "matrix in data.frame"

2012 Oct 28
6
Having some Trouble Data Structures
Hi All, I'm trying to run a simulation of host-pathogen evolution based around individuals. What I need to have is a dataframe or table of some description - describing all the individuals of a pathogen population (so far I've implemented this as a matrix): ID No_of_Effectors Effectors (Sequences) [1,] 0001 3 ## 3
2008 Jul 23
6
par() function does not work
Dear R-nautes, I installed the 2.7.1 version of R and found it is not possible to modify graphical parameters with par(). for example; > par(mfrow=c(2,2)) Error in c(2, 2) : unused argument(s) (2) > par$mfrow NULL Does any one know what is the cause of this problem? Regards, Fabio -- Fabio Sánchez, MD, MSc, PhD Unit of Dermatology and Venereology Department of Medicine Karolinska
2006 Oct 19
1
Writing a script for multiplying a progressively larger lists of items
Hi, I would like to get guidance as to how to write code in R that can deal with the following situation: v1 is a vector containing a sequence of numbers (Ex. 1:10) I want to store the sequence of numbers resulting from multiplying the first and the second element in the vector, then the product of the 1st, 2nd and 3rd, then 1st,2nd,3rd and 4th and so forth until all the elements in the
2008 May 27
2
Write function multiple tests and write summary table
Dear R community, I am not experienced in writing functions and need your help to understand the strategy to face the following problem: I have a group of independent numerical variables, let's say a<-c(1,3,2,6,9,2,2,3,4,1) b<-c(2,3,3,4,5,6,2,1,1,6) c<-c(0,2,4,4,7,6,7,1,2,2) d<-c(0,0,0,1,0,2,1,3,1,2) e<-c(9,2,3,1,1,1,0,2,5,6) and a grouping variable,
2006 Jul 21
4
Autocompleting InPlaceEditor
Hi, I''ve created some extensions to script.aculo.us InPlaceEditor, allowing the use of either server-driven, or local autocompletion. I''ve also created new helper methods in Rails for this functionality. My question is, is there any interest that I package this and make it available as a plugin, or something like that? Regards -- Ola Bini (http://ola-bini.blogspot.com)
2012 Oct 07
3
what exactly is the dim of data set yarn in package "pls"?
Hi list, I am looking at the data yarn in package, I don't understand what is dimension of this data set. I did the following: > library(pls) > data(yarn) > dim(yarn) [1] 28 3 > head(yarn) NIR.1 NIR.2 NIR.3 NIR.4 NIR.5 NIR.6 NIR.7 NIR.8 NIR.9 NIR.10 NIR.11 1 3.06630 3.08610 3.10790 3.09720 2.99790 2.82730 2.62330 2.40390 2.19310 2.00580 1.83790 2
2006 Jul 14
8
CAS Authentication filter.
Hi CAS is a centralized authentication service, and the cas_auth filter can be installed to automatically make your web application authenticate against a CAS server. The SVN path to the plugin is http://svn.ki.se/rails/plugins/cas_auth and a homepage with some information can be found at http://opensource.ki.se/casauth.html For use, just install the plugin in your application and set
2007 Oct 16
1
data structure for plsr
All, I am working with NIR spectral data and it was great to find that the example in ?plsr also used spectral data. Unfortunately, I am having difficulty figuring out how the "yarn" dataset is structured to allow for the plsr model to read: library(pls) data(yard) yarn.oscorespls <- mvr(density ~ NIR, 6, data = yarn, validation = "CV", method = "oscorespls")
2020 Apr 17
2
Demo for linking native routines between R packages
Dear R developers, I want to advertise a small project for the educational purpose to show people how to link native routines. In R programming, we need to link to native routines in C, C++, or Fortran from the R environment. In most cases, the linking works within one package, namely the R code in a package calls the native code in the same package. This is not necessarily always the case.
2007 Jan 02
0
pls version 2.0-0
Version 2.0-0 of the pls package is now available on CRAN. The pls package implements partial least squares regression (PLSR) and principal component regression (PCR). Features of the package include - Several plsr algorithms: orthogonal scores, kernel pls and simpls - Flexible cross-validation - A formula interface, with traditional methods like predict, coef, plot and summary - Functions
2007 Jan 02
0
pls version 2.0-0
Version 2.0-0 of the pls package is now available on CRAN. The pls package implements partial least squares regression (PLSR) and principal component regression (PCR). Features of the package include - Several plsr algorithms: orthogonal scores, kernel pls and simpls - Flexible cross-validation - A formula interface, with traditional methods like predict, coef, plot and summary - Functions
2006 Jul 14
2
Configuration search order
Hi I''m in the process of deciding how a plugin should be designed to make configuration as easy as possible. Right now I require the plugin from init.rb, and set some configuration options (as class attribute accessors) from environment.rb. Then I tried setting these from environments/development.rb instead, and to my surprise this didn''t work. It said the class in question
2009 Jun 30
1
please help me about data format.
Hi~ helpers. I was surprised by R data type. I use to data type like table. I don't know R allow several data type such as list, number, matrix in the same matrix. I want to use plsr in pls package to anlaysis data. So, I read R help and example of plsr. that example show me that data as yarn has three colname as NIR, density and train. the NIR was 268(No. of col) X 71(No. of row)
2009 May 08
1
What package I use to draw 3D plot after plsda?
Hi. I was used to draw 2D plot to show distribution of my samples. It was very powerful in small samples. Recently , I handle a lot of type of samples as more 15. so, I want to use more dimention. I was used that I conduct plsda function and draw biplot, such as, p1=plsda(mw, sp) biplot(p1) How can I draw 3D graph with my data?? I don't know exactly numerical value each spot. please,
2008 Jul 01
1
Help in using PCR
Hi, Currently I have a dataset of 2400*408. And I would like to apply PCR method to study the any correlation between the tests. My current data is in data.frame and I have formed horizontal(1-407) to be the exact data, and (408) to be my results data(Yes and No) I have also binarized these Yes and No to 1 and -1s. However, when I refer to PCR manual on R, the example of yarn.pcr <-
2006 Jul 22
1
InPlaceEditor with Autocompletion
Hi Rails AJAX controls are very handy, and the InPlaceEditor is probably one of the easiest and most neat of them all. But, it doesn''t do autocompletion. I''ve rectified that situation. The plugin provides a few new helpers and a new JavaScript-file that extends the Ajax.InPlaceEditor with local and remote Autocompletion features. So, just install the plugin, include the
2008 Jul 21
1
dev2bitmap error, 'gs' cannot be found
Dear List, I am using the bioconductor package Category to do some gene enrichment analysis, and usually save my KEGGmnplot's using a dev2bitmap command. This has worked just fine, until suddenly earlier today I got this error-message: > dev2bitmap("04610_080721.jpg",type="jpeg", height = 10, width = 10, res = 200) Error in dev2bitmap("04610_CSF080721.jpg",
2006 Jun 16
1
R in ConTeXt
In case there are users of the TeX macro package ConTeXt on this list, they may be interested to know that it is now possible to include R code in a ConTeXt document and have the code evaluated while compiling. The inverse of Sweave, as it were. The advantage is that there is then only one file to keep track of (.tex vs .rnw and .tex), while a drawback is speed, since each code snippet is
2010 Mar 12
2
Data frame question
Hi, I have the following question about creating data frames. I want to create a data frame with 2 components: a vector and a matrix. Let me use a simple example: y <- rnorm(10) x <- matrix(rnorm(150), nrow=10) Now if I do dd <- data.frame(x=x, y=y) I get a data frame with 16 colums, but if, according to the documentation, I do dd <- data.frame(x=I(x), y=y) then str(dd)
2009 Sep 29
3
Probability of data values form DENSITY function
Hello,   Could someone help me please and to tell how to get the probability from empirical DENSITY (not parametric) for each data value (R function). For example, for normal distribution there is such a function like:   “dnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)”   I need the same function only for the empirical DENSITY function (which does not correspond to any typical