search for: colums

Displaying 20 results from an estimated 363 matches for "colums".

Did you mean: column
2009 Nov 06
2
how can I delete those columes with the same element in every row?
e.g. a= a b c d e 1 1 1 3 1 1 2 1 2 3 4 5 3 1 3 3 8 3 4 1 4 3 3 5 5 1 1 3 1 1 I want to delete colume a and colume c, because they have the same values in every row, then ,I want to get this data.frame . b= b d e 1 1 1 1 2 2 4 5 3 3 8 3 4 4 3 5 5 1 1 1 the following is my code but it's wrong. rm(list=ls()) a=c(1,1,1,1,1); b=c(1,2,3,4,1); c=c(3,3,3,3,3);
2009 Dec 20
2
how to create three new variables? Thanks a lot!
Dear R experts: I have following data structure: student id, exam time and score. I want to create three new columes: 1 st before, 2nd before and 3rd before. For example, for student 1's 4th exam score is assumed to be influenced by his previous three cloest scores, which are 6, 9, and 10 in that order. For student 2's 5th exam score is assumed to be inflenced by her previous cloest
2009 Jan 26
2
Getting data from a PDF-file into R
...%2Bfarver%2B2.jpeg So i want to pull out the data in coloured boxes it become organized like this (just in R instead of excel); http://www.nabble.com/file/p21667074/PRRS-billede%2Bexcel.jpeg So the 0'es and 1'es represent when either "PRRS-neg" occurs presented by a 0 in the colums PRRS-VAC and PRRS-DK on a particular date. And the same with "PRRS-pos VAC" or "Vac" presented by a 1 in the colum PRRS-VAC, and "PRRS-pos DK" or "DK" presented by a 1 in the colum PRRS-DK. And also with "sanVAC" there should be a 1 in the colum VA...
2005 Jan 03
3
colums in ''shorewall show connections'' command
I do not understand some colums in the output to ''shorewall show connections'' /root> shorewall show connections Shorewall-2.0.2f Connections at firewall - Mon Jan 3 13:12:52 PST 2005 .. tcp 6 353296 ESTABLISHED src=112.129.244.121 dst=224.81.133.205 sport=3647 dport=443 src=224.81.133.205 dst=112.129.244...
2009 Dec 01
4
median for time data
Hi everybody How do I do to calculate the median and average of a colum of time data like this: "8:50:10". I also need to plot the time difference between two colums Thanks a lot -- View this message in context: http://n4.nabble.com/median-for-time-data-tp932287p932287.html Sent from the R help mailing list archive at Nabble.com.
2007 Apr 20
4
Change the mode of a list
Hello, can anybody tell me a easy way to change the mode of an "aggregate list" to "numeric"? I found a solution but I looks cruel. Thank's Felix PS: In the past you have asked what I am doing. I have to evaluate measures of two gauges of our university. The aim is to get an answer which one is better. > mode(MEAN) [1] "list" > mode(MEASURE) [1]
2012 Aug 08
3
help, please! matrix operations inside 3 nested loops
hello, this is my script: #1) read in data: daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt', header=TRUE, sep="\t") daten<-as.matrix(daten) #2) create empty matrix: indxind<-matrix(nrow=617, ncol=617) indxind[1:20,1:19] #3) compare cells to each other, score: for (s in 3:34) { #walks though the matrix colum by colum, starting at
2011 Mar 30
1
CDR Mysql adaptive Colum
...erisk 1.8 from repo: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages And Looked at this article about CDR in mysl. http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql I installed asterisk-mysql pacakge from debian repo. The cdr in mysql is working, but i can not get cdr adaptive colums are not, i use this in my extension.conf exten => s,1,set(CDR(teste)=${CHANNEL(audioreadformat)}) And is not working, i thought the only diference it i would need the colum teste in my cdr table right ? I tryied a lot of combinations of exten => Does anyone have any ideia how is the right...
2009 Nov 06
2
another question: how to delete one of columes in two ones with high correlation(0.95)
my programe is below: a=c(1,2,1,1,1); b=c(1,2,3,4,1); c=c(3,4,3,3,3); d=c(1,2,3,5,1); e=c(1,5,3,5,1) data.f=data.frame(a,b,c,d,e) origin.data<-data.f cor.matrix<-cor(origin.data) origin.cor<-cor.matrix m<-0 for(i in 1:(cor.matrix[1]-1)) { for(j in (i+1):(cor.matrix[2])) { if (cor.matrix[i,j]>=0.95) { data.f<-data.f[,-i]; i<-i+1 }
2008 Nov 20
1
convert factors to numbers
Hello, I have a problem with reading a csv-file. One colum of the inputfile consists of characters and numbers. After reading the csv-file I create a new dataframe by dividing the values of that colum into more colums (then a colum contains just characters or numbers) but the numbers are converted to factors. How can I create the new dataframe without having the numbers converted to factors? ----- Tamara Hoebinger University of Vienna -- View this message in context: http://www.nabble.com/convert-factors-to-nu...
2008 Mar 22
2
counting values on one colum only
Hi all: Can someone help me count the number of rows with values in colum "a" only. assume the name of my dataframe is "weekly" I was trying i<- nrows(weekly$a) i but returns 7 when it should be 4. Thanks a b c d 27.000 27.000 1.569 0.013 160.000 27.000 1.632 0.013 146.000 27.000 1.830 0.015 70.000 27.000 2.475 0.019
2003 Sep 05
3
all values from a data frame
Hello, I've a data frame with 15 colums and 6000 rows, and I need the data in a single vector of size 90000 for ttest. Is there such a conversion function in R, or would I have to write my own loop over the colums? thanks for your help + kind regards Arne
2010 Aug 01
3
finding max value in a row and reporting colum name
Hi, Hopefully someone can point me in the right direction on how I would go about solving the following. I have some data and need to find the column name of the maximum value in each row. This could be the data... > a <- data.frame(x = rnorm(4), y = rnorm(4), z = rnorm(4)) > a x y z 1 1.6534561 0.11523404 0.2261730 2 -1.2274320 -0.24096054 1.5096028
2005 Nov 24
4
write.csv
hallo, i have a problem by writing a csv file the first colum is filled with index numbers from 1 to n. i have to unique two csv files once a week while one file is always the same. can anybody tell me, how to write the dataset into a csv file without the first row of the indexnumbers. x[,-1] does not wok as it eliminates the first "interesting" colum. col.names is not accepted by r
2009 Nov 04
1
Search values and create a new matrix
Hi You wrotte me in R help and I´m very gratefull. I couldn´t reply because an illness. I writte this to see if you can help to solve. I´m a begginer (I´m 20 years old ) but I´m trying to learn more about this program also I´m learning Octave. I need to create a matrix in R whose values depends on the values of other matrix. You see: I have a first "R" matrix whose first row and
2003 Oct 16
1
A data frame of data frames
Hello, I'm trying to set up the flowwing data structure in R: A data frame with 7,000 rows and 4 colums. The rownames have some special meaning (they are names of genes). The 1st column per row is itself a data frame, and columns 2 to 4 will keep numeric values. The data frame contained in the 1st column will have 54 rows (with special names) and 4 colums (1st col is a response, cols 2- 4 are factor...
2011 Jun 27
1
show colums x till end
Hey again, I didn't wat questions to get mangled up, so here's my second email. In matlab, there is the simple possibility to access colums x till last of a matrix using mydata(1:3, 5:end). In R, I so far use mydata[1:3, 5:ncol(mydata)] Is there a faster way? (in terms of typing) Thanks ahead, Berry ------------------------------------- Berry Boessenkool University of Potsdam, Germany -------------------------------------
2012 Jun 27
1
how to convert list of matrix (raster:extract o/p) to data table with additional colums (polygon Id, class)
...ter,7 Character,2 .................... Now i want to convert it in a table as above. how to do this? Thanks for your suggestion AKJ -- View this message in context: http://r.789695.n4.nabble.com/how-to-convert-list-of-matrix-raster-extract-o-p-to-data-table-with-additional-colums-polygon-Id-cla-tp4634579.html Sent from the R help mailing list archive at Nabble.com.
2008 Apr 02
1
How to best read in this data / Switching rows and colums
..., sep = ",", fill = TRUE) R treats rows as columns and columns as rows. Is there someway to change this bahaviour? Or can i post process the data once I read it in? Thanks a lot! -- View this message in context: http://www.nabble.com/How-to-best-read-in-this-data---Switching-rows-and-colums-tp16447071p16447071.html Sent from the R help mailing list archive at Nabble.com.
2003 Oct 17
4
sub data frame by expression
Hi All, I've the following data frame with 54 rows and 4 colums: > x Ratio Dose Time Batch R.010mM.04h.NEW 0.02 010mM 04h NEW R.010mM.04h.NEW.1 0.07 010mM 04h NEW ... R.010mM.24h.NEW.2 0.06 010mM 24h NEW R.010mM.04h.OLD 0.19 010mM 04h OLD ... R.010mM.04h.OLD.1 0.49 010mM 04h OLD R.100mM.24h.OLD...