search for: cl2

Displaying 20 results from an estimated 21 matches for "cl2".

Did you mean: cl
2008 Jul 03
1
randomForest.error: length of response must be the same as predictors
My data looks like: A,B,C,D,Class 1,2,0,2,cl1 1,5,1,9,cl1 3,2,1,2,cl2 7,2,1,2,cl2 2,2,1,2,cl2 1,2,1,5,cl2 0,2,1,2,cl2 4,2,1,2,cl2 3,5,1,2,cl2 3,2,12,3,cl2 3,2,4,2,cl2 **The steps followed are: trainfile <- read.csv("TrainFile",head=TRUE) datatrain <- subset(trainfile,select=c(-Class)) classtrain <- (subset(trainfile,select=Class)) rf <- randomF...
2013 Jun 18
1
hist function in a for loop
Dear all, I need to create a for-loop in which I can compute multiple histograms My code is the following : #singlefile includes huge csv file #I want to specify the binsize #I would like to compute in the for -loop the histograms numfiles <- length(singlefile) for (i in 1 :51) { binsize <- -20 :20/2 hist(singlefile(singlefile$GVC[singlefile$new_id==i]], break=seq(),
2008 Jul 02
1
randomForest training error
While trying to train randomForest with my dataset, I am ending up with the following error Error in randomForest.default(datatrain, classtrain) : length of response must be the same as predictors My data looks like: A,B,C,D,Class 1,2,1,2,cl1 1,2,1,2,cl1 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,12,3,cl2 3,2,1,2,cl2 Actual dataset has around 4000 features and two classes. And number of instances is also around 4000. The steps followed are: trainfile <- read.csv("TrainFile",head=TRUE) datatrain <- s...
2005 Jul 06
1
Error message NA/NaN/Inf in foreign function call (arg 6) when using knn()
..."A" "T" "G" r "A" "A" "T" "G" f "A" "A" "c" "G" f "A" "A" "c" "G" f "A" "A" "c" "G" > cl2 <-factor(c(rep("1",2), rep("2",3))) > cl2 [1] 1 1 2 2 2 Levels: 1 2 > knn(try, try, cl2, k = 2) Error in knn(try, try, cl2, k = 2) : NA/NaN/Inf in foreign function call (arg 6) In addition: Warning messages: 1: NAs introduced by coercion 2: NAs introduced by coercion...
2011 Sep 14
1
S4 method dispatch
...t;, function(object, value) standardGeneric("doNothing<-")) setReplaceMethod("doNothing", signature(object = "Spatial", value = "ANY"), function(object, value) object) dosth = function(obj) { cl1 = class(obj) doNothing(obj) = TRUE cl2 = class(obj) if (!identical(cl1, cl2)) { print(paste(cl1, cl2)) stopifnot(identical(cl1, cl2)) } obj } When things go wrong, dosth and doNothing are called with a subclass of Spatial, e.g. an object of class SpatialGrid, but when this gets in doNothing, the object is su...
2010 Jun 30
1
parameterization of glm nested design
Dear R community, I am new to R, a reforming SAS user :) I am running R 2.10.1 on a Windows XP machine. I would like to write linear functions of my coefficient parameter estimates from a glm, but am having a difficult time understanding the parameterization R uses. In the toy example below I am running a glm on binomial data, with clones and lines within clones as fixed effects, each with 6
2011 Jun 21
1
plot error bars on skyline plot
...1.1:3):0, (9.1:0, 27.1:0):1):2, (5.1:0, 10.1:0):3):1, (38.1:1, (4.1:1, (24.1:0, 18.1:0):2):0):0):16, 36.1:19):8, (32.1:0, 33.1:1):29):33, (40.1:18, ((23.1:0, 12.1:1):3, 34.1:2):16):42):1):82);" t<-read.tree(text=un) # following example from ape package cl1 <- collapsed.intervals(ci,0) cl2 <- collapsed.intervals(ci,0.0119) sk1 <- skyline(cl1) # from collapsed intervals sk1 <- skyline(ci) # from coalescent intervals sk1 <- skyline(tree.hiv) # from tree sk2 <- skyline(cl2) # from collapsed intervals sk2 <- skyline(ci, 0.0119) # from coalescent intervals sk2 <- sky...
2004 May 05
1
Segfault from knn.cv in class package (PR#6856)
...doesn't have error checking to ensure that the length of the classlabel argument is equal to the number of rows in the test set. If the classlabel is short, the result is often a segfault. > library(class) > dat <- matrix(rnorm(1000), nrow=10) > cl <- c(rep(1,5), rep(2,5)) > cl2 <- c(rep(1,5), rep(2,4)) > knn.cv(dat, cl) [1] 2 2 1 2 1 2 2 2 2 2 Levels: 1 2 > knn.cv(dat, cl2) # May have to try more than once to get segfault. This also occurs on my linux box. Best, Jim --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch =...
2008 Mar 18
3
Partition data into clusters
...d.csv("Spellman800genesImputed.csv") # exclude first col (gene names) ########################## wholeset2 = wholeset[,-1] #Use fpc ########################### library(fpc) cl.kmr10 <- kmeansruns(wholeset2,k=10,runs=10) #append cluster label to original dataset ################### cl2 <- data.frame(wholeset, cl.kmr10$cluster) After this step, I write cl2 into a csv file and manually partition data into its respective clusters using Excel. Then I read the data from each clusters back into R for further analysis. Can I do the data partitioning directly in R? TQ -- Suhaila...
2008 May 28
1
heatmap-changing column or row names
Dear R Community, I am trying to create an heatmap for the following set of data: ##example of data matrix o4 V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 green 27 28 29 29 28 28 26 25 25 23 23 22 22 21 21 22 22 22 yellow 6 8 8 7 7 7 6 6 6 7 7 7 6 6 6 6 6 5 red 15 15 15 15 15 15 14 13 12 11 12 10 9 8 7 6 8 9 pink
2007 Oct 03
1
inverse of matrix made by low.tri function
Hi all, I am using R trying to get a inverse matrix of (X^T)X , but I keep getting the error message like: no b argument and no default value for sprintf(gettext(fmt, domain = domain), ...) . -------------------------------------------------------------------------------------------- # my code X<-Matrix(rep(1,500),100,5) X[lower.tri(X)]<-1-10^-7 XtX<- t(X)%*% X XtXu<-lu(XtX)
2009 Nov 16
3
Cluster analysis: hclust manipulation possible?
I am doing cluster analysis [hclust(Dist, method="average")] on data that potentially contains redundant objects. As expected, the inclusion of redundant objects affects the clustering result, i.e., the data a1, = a2, = a3, b, c, d, e1, = e2 is likely to cluster differently from the same data without the redundancy, i.e., a1, b, c, d, e1. This is apparent when the outcome is visualized
2005 Jun 29
3
Memory Management under Linux: Problems to allocate large amounts of data
...tabase I do most of the work in MySQL. But still I could be nice to work on some data using R. Therefore I can use a dedicated Server with Gentoo Linux as OS hosting only R. This Server is a nice machine with two CPU and 4GB RAM which should do the job: Dual Intel XEON 3.06 GHz 4 x 1 GB RAM PC2100 CL2 HP Proliant DL380-G3 I read the R-Online help on memory issues and the article on garbage collection from the R-News 01-2001 (Luke Tierney). Also the FAQ and some newsgroup postings were very helpful on understanding memory issues using R. Now I try to read data from a database. The data I wanted...
2010 Jun 08
2
how to ignore rows missing arguments of a function when creating a function?
Hi, I am relatively new to R; when creating functions, I run into problems with missing values. I would like my functions to ignore rows with missing values for arguments of my function) in the analysis (as for example is the case in STATA). Note that I don't want my function to drop rows if there are missing arguments elsewhere in a row, ie for variables that are not arguments of my
2016 Oct 07
3
RuntimeDyLdCOFF and RTTI on Windows
...t? > May I ask if you know about problems reading RTTI data from COFF object > files on Windows? > > I am facing the issue that C++ dynamic_cast doesn't work for types > loaded from object files with RuntimeDyLd. I inspected my object files > compiled with Clang-3.9 (pure, not cl2) and they seem to include all the > necessary info. When I link (with MS link) and run the static build I > get the expected behavior. Correspondingly I'd consider the RTTI > emission in Clang to work correctly. > > When I load the object files with RuntimeDyLd at runtime, I face...
2005 Apr 29
0
recording packet sent time
Hello I am writing a qdisc scheduler (called fb in the diagram) that does certain packet delaying and other stuff. (for egress traffic) root (htb/tbf) | --------------- cl1 cl2 | tbf -------- | | cl3 cl4 | | *fb* fifo Now I need to record the time when packets leaves the system. I can''t do it in fb since the packet *may* exp...
2006 Jan 15
0
Samba Migration
...v v NFS-Shares Import (/Data/Samba) (Other Servers) NFS-Server Cluster (/Data/...) (w/Samba) SMB-Shares ^ | v |--100MB-IP--| ^ | v Windows Network I use the Kernel NFS-Server of the uname -a: Linux L10-CL2 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux The Data-Cluster is a DRBD 1GB IP block device replication system. QUESTION: If I copy the data files from the present active and functioning Samba system to the new system, what happens to the file rights from a win...
2016 Oct 24
2
RuntimeDyLdCOFF and RTTI on Windows
...lems reading RTTI data from COFF object >>> files on Windows? >>> >>> I am facing the issue that C++ dynamic_cast doesn't work for types >>> loaded from object files with RuntimeDyLd. I inspected my object files >>> compiled with Clang-3.9 (pure, not cl2) and they seem to include all the >>> necessary info. When I link (with MS link) and run the static build I >>> get the expected behavior. Correspondingly I'd consider the RTTI >>> emission in Clang to work correctly. >>> >>> When I load the object f...
2008 Jul 04
2
experinental revision of the 'snow' package
A new version of the 'snow' package for parallel computing in R is available at http://www.stat.uiowa.edu/~luke/R/cluster/snow_0.3-3.tar.gz This substantially revises the way in which worker processes are started to allow snow to be used on Windows and Mac/Windows/Linux combinations. I have successfully used the SOCK version on a standalone Windows machine and combinations of
2020 Jan 26
2
[RFC] Replacing inalloca with llvm.call.setup and preallocated
...m3) [ "callsetup"(token %cs) ] cleanup1: %cl1 = cleanuppad unwind to caller call void @dtor(i8* %m1) [ "funclet"(token %cl1) ] cleanupret %cl1 to label %cleanup0 cleanup0: %cl0 = cleanuppad unwind to caller call void @dtor(i8% %m0) [ "funclet"(token %cl2) ] cleanupret %cl0 to label %cleanupCall cleanupCall: %clC = cleanuppad unwind to caller call void @llvm.call.teardown(token %cs) ;; Or llvm.call.cleanup? cleanupret %clC to caller ``` Generally, cleanups to tear down a call setup region are not needed if control cannot return to the cur...