Re: [R] lars - lasso problem

From: Steve Lianoglou <mailinglist.honeypot_at_gmail.com>
Date: Fri, 08 Apr 2011 12:11:01 -0400

Hi,

On Fri, Apr 8, 2011 at 10:33 AM, gauri j <gauri.jape7_at_gmail.com> wrote:
> hi,
> I have problem in following code, error is occurred. I have attached my data
> herewith. and my code is as following,

>> library(lars)

> Loaded lars 0.9-8
> Warning message:
> package 'lars' was built under R version 2.12.2
>> x<- read.table("D:/spring '11/james reggression/NewFeature.txt")
>> y<-read.table("D:/spring '11/lars/RFU.txt")
>> out<- lars(x,y, type = "lasso")

> Error in one %*% x : requires numeric/complex matrix/vector arguments

What is the output for the following commands?

R> is(x)
R> apply(x, 2, function(x) is(x)[1])
R> is(y)


-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 08 Apr 2011 - 16:13:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 23:00:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive