similar to: write.table linebreaks

Displaying 20 results from an estimated 1000 matches similar to: "write.table linebreaks"

2007 Oct 10
3
as.dist with diagonal unequal zero
Hello and sorry that I still haven?t found a solution for my problem. I need to extract the lower and upper triangle from a square matrix including the diagonal. This diagonal is not zero in that special case. I tried with as.dist w<-as.dist(w, diag = TRUE) > w 1 2 3 4 5 1 0 2 2 0 3 3 8 0 4 4 9 14 0 5 5 10 15 20 0 but found no way to keep the diagonal that is in the
2007 Jun 28
5
Repeat if
Hello, (Power Book G4, Mac OS X, R 2.5.0) I would like to repeat the function range for 85 Vectors (V1-V85). I tried with this code: i<-0 > repeat { + i<-i+1 + if (i<85) next + range (Vi, na.rm = TRUE) + if (i==85) break + } I presume that the Vi is wrong, because in this syntax i is not known as a variable. But I don´t know how to say that it is a variable here. Would be nice if
2007 Nov 23
4
PCA with NA
Dear all, (Mac OS X 10.4.11, R 2.6.0) I have a quantitative dataset with a lot of Na?s in it. So many, that it is not possible to delete all rows with NA?s and also not possible, to delete all variables with NA?s. Is there a function for a principal component analysis, that can deal with so many NA?s. Thanks in advance Birgit Birgit Lemcke Institut f?r Systematische Botanik
2007 Sep 28
2
simple matching with R
Hello! I am R beginner and I have a question obout a simple matching. I have to datasets that i read in with: MalVar29_37<-read.table("MalVar29_37.csv", sep = ";") FemVar29_37<-read.table("FemVar29_37.csv", sep = ";") They look like this and show binary variables: V1 V2 V3 V4 V5 V6 V7 V8 V9 1 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 1
2007 Oct 01
1
Error loading DCluster
When I try to load the DCluster package I get the following error message (R 2.5.1; PowerBook G4; Mac OS X 10.4.10) (Load needed package) Lade nötiges Paket: spdep (error: package spdep could not been loaded) Fehler: Paket 'spdep' konnte nicht geladen werden (additional warning message) Zusätzlich: Warning message: (There is no package spdep in:.....) es gibt kein Paket 'spdep'
2007 Jul 19
1
plot3d labels
Hello R users, I am a newby using R 2.5.0 on a Apple Power Book G4 with Mac OS X 10.4.10. Sorry that I ask again such stupid questions, but I haven´t found how to label the points created with plot3d (rgl). Hope somebody can help me. Thanks in advance. Birgit Birgit Lemcke Institut für Systematische Botanik Zollikerstrasse 107 CH-8008 Zürich Switzerland Ph: +41 (0)44 634 8351
2007 Oct 08
2
as.ordered
Hello Members, I try to convert variables in a data.frame (bract.awn) in the class ordered. str(bract.awn) 'data.frame': 348 obs. of 2 variables: $ bracts.length.relative.to.flower...............Min: Factor w/ 4 levels "1","2","3","4": 2 3 3 3 3 2 1 4 3 2 ... $ bract.awn.relative.to.body.................Max : Factor w/ 4 levels
2007 Aug 23
1
ordered factors in data.frame
Hello I need a tiny peace of help. (PPC Mac Os X 10.4.10; R 2.5.1) I have a data.frame with numeric and factor variables. I would like to convert same of the factors to ordered factors. I tried with: attach (table) as.ordered (V3) but this gives me only the V3 Vector as ordred back but in the data.frame (str(Table)) it is still not ordered. How can I do that? Thanks for your help. I am
2007 Sep 20
3
Ambiguities in vector
Hello all you helpful people out there! I am stil R Beginner using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 . Perhaps you haven?t understood my question in the mail yesterday. So I will try to describe my problem in a different way You see the tables. I would like to test the variables between the tables. But for some variables in some species , I have more than 1
2008 Apr 21
1
ANCOVA
R version 2.6.2 PowerBook G4 Hello R User, I try to perform an ANCOVA using the glm function. I have a dataset with continuous and categorical data (explanatory variables) and my response variable is also binary categorical. Fehler: NA/NaN/Inf in externem Funktionsaufruf (arg 4) Zus?tzlich: Warning messages: 1: In Ops.factor(y, mu) : - nicht sinnvoll f?r Faktoren (makes no sense for
2008 May 05
1
Count data in random Forest
Hello R-user! I am running R 2.7.0 on a Power Book (Tiger). (I am still R and statistics beginner) I try to find the most important variables to divide my dataset as given in a categorical variable using randomForest. Is randomForest() able to deal with count data? Or is there no difference because only the ranks are used in the trees? Thanks in advance Birgit Birgit Lemcke Institut f?r
2007 Nov 12
1
(no subject)
Hello members of the mailinglist! I am running R 2.6.0 GUI 1.21 (4815) (4815) on a PPC with Mac OS X 10.4. I just tried to use the R commander. I followed these instructions: 4) Start R (e.g. double-click the R icon in /Applications). 5) Start X11 (e.g. click the X11 button on the R Console or double- click the X11 icon in /Applications/Utilities). 6) Close the X11 terminal (optional). 7) Type
2008 May 29
1
boxplot with text and symbols on x
Hello R-user community! I am running R 2.7.0 on a Power Book (Tiger). (I am still R and statistics beginner) I did the following : pdf("InLnegthMaxHomogeneity.pdf") boxplot(inflorescence_length_Max~Sex, main="Bartletts Homogeneity for inflorescence length",data=FemMal_Sex) Homo<-bartlett.test(FemMal_Sex$inflorescence_length_Max,FemMal_Sex$Sex) text( 2, 500,
2007 Oct 22
1
plot3d with more than 8 colors
Hello R user and helper! I would like to get a 3d plot with coloured points. I did that: colors<-c(rep("2",7), rep("3",12), rep("4", 24), rep("5", 13), rep ("6", 8), rep("7", 51), rep("8", 1), rep("9", 15), rep("10", 53), rep ("11",3), rep("12",3), rep("13", 8),
2008 May 05
1
Problems using rfImpute
Hello R-user! I am running R 2.7.0 on a Power Book (Tiger). (I am still R and statistics beginner) I tried rfImpute (randomForest) and as far as I understood should it replace NA`s using a proximity matrix: > set.seed(100000) > Subset5Imputed<-rfImpute(Sex~., data=Subset5) ntree OOB 1 2 300: 11.78% 12.36% 11.21% ntree OOB 1 2 300: 12.07% 12.64%
2008 Apr 29
1
randomForest and ordered factors
Hello R-user! I am running R 2.7.0 on a Power Book (Tiger). (I am still R and statistics beginner) I try to find the most important variables to divide my dataset as given in a categorical variable. code: Test.rf4<-randomForest(Sex~.,na.action=na.roughfix, data=Subset4, importance=TRUE, proximity=TRUE, ntree=10000, do.trace=1000, keep.forest=FALSE) My dataset contains also ordered
2007 Jun 20
1
Dissimilarity
Hello Stephen, I am happy that you help me. Thanks a million. It is a good feeling that you confirm my assumption that dsvdis is not able to deal with missing data, because it says me that I am not completely incapable. Okay now I have the problem what to do. I used this function ´cause there is an option to weight columns differently what I haven´t found in other functions. But now I
2007 Jun 21
1
Distance function
Hello you all from the R Help mailing list! I am working on a PowerBook with Mac Os X and use R 2.5.0. I used the distance function from the analogue package to perform a similarity analysis using the Gowers Index and weighted Variables. My variables are bivariate data and measurements as well as interval data transformed into minimum and maximum variables. I used this Code:
2008 May 15
1
metaMDS using Dissimilarity matrix
Hello R-user community! I am running R 2.7.0 on a Power Book (Tiger). (I am still R and statistics beginner) Presently I try to run the function metaMDS (vegan) using an existing dissimilarity-matrix. As I would like to start with this matrix I thought I could just give the matrix using the x= -argument Test<-metaMDS(x=Dist.Gower) Fehler in inherits(comm, "dist") :
2007 Sep 13
3
t.test() with missing values
Hello! I am using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 and I am still R beginner. I try to calculate a t.test() using this code: TTest75<-t.test(Fem75, Mal75, alternative= "two.sided", paired= TRUE) This works properly, but I have two variables with a lot of missing data and therefore get the error message: TTest66<-t.test(Fem66, Mal66, alternative=