search for: colomn

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

Did you mean: coloumn
2006 Aug 04
2
Data frame referencing?
....4898596 -1.5863823 5 -0.08967880 1.0000000 -0.9139706 6 0.03712110 1.0000000 -1.3004970 7 -0.80592149 -0.7004193 -0.1958059 8 0.07413450 1.0000000 -1.3574303 9 0.15557671 -0.3335407 -2.1991236 10 1.22165341 1.0000000 -0.7576708 For a complex loop I would prefer to reference the right colomn by name, not by number! Now, when the colomns change, I need to check my code to make sure that the right colomns are referenced. Suggestions much appreciated! Thanks in advance, Sander.
2012 Feb 18
2
transforming a data frame to matrix
...0.2 27 I / L 33 I L 0.4 17 I / L 45 I L 0.6 8 I / L 56 I L 0.8 2 I / L 12 I S 0.0 28 I / S 24 I S 0.2 11 I / S 36 I S 0.4 6 I / S 48 I S 0.6 3 I / S I have a data frame formed by 5 colomns. How to transform this data frame to a matrix formed as follow: 1. the colomn 5 is the comumn (string) 2. the colomn 5 row 3. the data are the colomn x. I aim to draw barplot later using the matrix. Thanks for any help -- PhD candidate in Computer Science Address 3 avenue lamine, cité...
2005 Nov 13
1
selection of missing data
Hi i'm a french medical student, i have some data that i import from excel. My colomn of the datafram are the localisations of metastasis. If there is a metatsasis there is the symbol "_". i want to exclude the row without metastasis wich represent the NA data. so, i wrote this mela is the data fram mela1=ifelse(mela[,c(11:12,14:21,23,24)]=="_",1,0) # selec...
2009 Jul 31
2
merging two data frame with colomns of different length
Dear all, I am trying to merge two data frames based on a common column but for this common column both data frame do not have the same length and associated information. I checked previous exemples in the list but was not able to apply them in my case... Is someone know how to do that? Below is my code with the expected result: # data frame 1 Id1 <- c(1,1,1,2,2,2,3,3,3) Habit1 <-
2012 May 14
3
Add column from other columns data.
Hi everyone, I am having some problems with making a new colomn wit data in it. I have this one column named: Fulfilled Fulfilled 1 1 0 1 1 1 1 0 0 1 And now I would like to add another colum to my .csv file ("Finished") In this "Finished" column I would like to have "Yes" or "No". Where in colomn "Fullfilled&q...
2017 Nov 09
3
Calculating frequencies of multiple values in 200 colomns
Hi All I have a dataset of 200 columns and 1000 rows , there are 3 repeated values under each column (7,8,10). I wanted to calculate the frequency of each value under each column and then apply the function maf () given that the frequency of each value is known. I can do the analysis step by step like this :- > Values A B C ... 200 1 7 10 7 2
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
...he frequency of 0 values should also be calculated for the maf to be calculated correctly. ________________________________ From: Bert Gunter <bgunter.4567 at gmail.com> Sent: 09 November 2017 23:51:35 To: Allaisone 1; R-help Subject: Re: [R] Calculating frequencies of multiple values in 200 colomns [[elided Hotmail spam]] "For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate () would calculate the frequency of 1 and 2 without 3" Huh?? > x <- sample(1:3,10,TRUE) > x [1] 1 3 1 1 1 3 2 3 2 1 > tabulate(x) [1] 5 2 3 Cheers, Bert Bert Gunt...
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
...the maf to be calculated correctly. >> >> ________________________________ >> From: Bert Gunter <bgunter.4567 at gmail.com> >> Sent: 09 November 2017 23:51:35 >> To: Allaisone 1; R-help >> Subject: Re: [R] Calculating frequencies of multiple values in 200 colomns >> >> [[elided Hotmail spam]] >> >> "For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate () would calculate the frequency of 1 and 2 without 3" >> >> Huh?? >> >>> x <- sample(1:3,10,TRUE) >>> x...
2017 Nov 09
2
Calculating frequencies of multiple values in 200 colomns
...Regards > > Allahisone > ------------------------------ > *From:* Bert Gunter <bgunter.4567 at gmail.com> > *Sent:* 09 November 2017 20:56:39 > *To:* Allaisone 1 > *Cc:* r-help at R-project.org > *Subject:* Re: [R] Calculating frequencies of multiple values in 200 > colomns > > This is not a good way to do things! R has many powerful built in > functions to do this sort of thing for you. Searching -- e.g. at > rseek.org or even a plain old google search -- can help you find them. > Also, it looks like you need to go through a tutorial or two to learn...
2017 Nov 10
2
Calculating frequencies of multiple values in 200 colomns
...d also be calculated for the maf to be calculated correctly. > > ________________________________ > From: Bert Gunter <bgunter.4567 at gmail.com> > Sent: 09 November 2017 23:51:35 > To: Allaisone 1; R-help > Subject: Re: [R] Calculating frequencies of multiple values in 200 colomns > > [[elided Hotmail spam]] > > "For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate () would calculate the frequency of 1 and 2 without 3" > > Huh?? > >> x <- sample(1:3,10,TRUE) >> x > [1] 1 3 1 1 1 3 2 3 2 1 >&g...
2006 Mar 14
2
Date problem
Hello, I have some "stupid" problems managing "date" data. I have a colomn "date", which I converted from a character representation: for example: a="26/02/06" date=strptime(a,format="%d/%m/%y") For one part of the analysis, I'm interested only in the month and the year, so I did: m.y=strftime(date,format="%m/%y") This retu...
2011 Sep 17
1
Replacing matching values by related values
...nsisting of 17 rows). Here's an example The vector: v <- c(f,a,e,d,m,o,e,f,i,n,e,i,b,a,o) The dataset's columns consist of the following values d[,1] <- c(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) d[,2] <- 1:17 So I want to end up with a vector that consists of the values of the second colomn, when the value of the vector matches the value of the first colomn. Thus, I aim to end up with a vector with the following values c(6,1,5,4,13,15,5,6,9,14,5,9,2,1,15) Help is appreciated! ------------------------------------------------------------------------------ De informatie opgenomen in d...
2005 Jul 09
1
Quantile normalization and NA
Hi, I am new to R, I am doing quantile normalization with a dat matix of 384X124 and I find that while computing the quantile normailzation it introduces 'NA' into some of the cells, can someone help me to overcome this problem ? This is the command that goes like upto g62 for 124 colomns >g1 <- normalize.quantiles(exprs(MSExpr[,1:2])) For a small set of data there is no problem, but for a large set of data, it introduces "NA" in the place where it is suppose to geneerate data . Ravi ravidmurthy at yahoo.com Raviabi
2011 Sep 14
1
draw points in R
...41385 70 0.2 843545059 3 0.4 121289479 1 0.4 444889848 14 0.4 469197123 4 0.4 640007403 11 0.4 799706577 2 0.4 814441385 8 I read it with R and next I want to draw a point for each line the X is in col 2 and y is in col 3 but, I need that for each value of the first colomn , to have a color. Thus, I want to get a draw with 3 colors for values 0 , 0.2 and 0.4 The probleme is that when I use points function; it plots to me lines and not simpe points. Thank you in advance for any input. -- PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra...
2012 Mar 27
1
matrix(unlist(strsplit(""))) 'missing value' issue
...48000 3 notaccepted 9999999 Warning message: In matrix(unlist(strsplit(as.character(alldata$bankoffer.3), ":")), : data length [5] is not a sub-multiple or multiple of the number of rows [3] R does not encounter a ':' in the 9999999 and therefor places the 429000 in the second colomn, this should however be in the first one. Like this: V1 V2 1 9999999 9999999 2 429000 notaccepted 3 48000 notaccepted How can I tell R to place 9999999 in both colomns when he/she encounters a 9999999. Or any other solotion to my problem is also good. I for example thoug...
2011 Oct 17
1
multiple lines with the same data frame?
Bonjour I have this data frame and I am newbie in R. I want to ask if it is possible to draw 10 lines in a plot such that: a line for every colomn, the x - axis is the second column and the y-axis is the third one. Thank you for any input 1 0 1094442 1 0.2 1163576.2 1 0.4 1238539.6 1 0.6 1303510.4 1 0.8 1376573.2 1 1 1454175 2 0 1076068 2 0.2 1139246 2 0.4 1212344 2 0.6 1277591.8 2 0.8 1346156.6 2 1 1410...
2003 Jul 09
0
model selection in lme when corARMA is assumed
...my data) > 3. No correlation structure in the residuals. In this case, I'll use drop1 on the original model, and test various corARMA again for the new model. And the cycle from step 1 to 3 goes on. try1$resid (or resid(try1)? I forget) would give me two columns of residuals, the first colomn being residuals and the second being subject-specific residuals. I want to analyze the residuals using arima, so which colomn should I use? In my imagination (maybe a silly idea), considering all possible time lags between variables, to cope with the regression above, I would make pilot pairwise...
2011 Jul 23
1
Extend my code to run several data at once.
Hi I have a code that calculate maximisation using optimx and it is working just fine. I want to extend the code to run several colomns of R_j where j runs from 1 to 200. If I am to run the code in its current state, it means I will have to run it 200 times manually. May you help me adjust it to accomodate several rows of R_j and print the 200 results. ***Please do not get intimidated by the maths in the code.*** my code ######...
2011 Feb 01
1
multi-Operations on a matrix
...0:00+0100 6 S_1000 nord 626496.9 2009-04-23T00:00:00+0200 7 S_1000 nord 626497.0 2009-11-10T00:00:00+0100 8 S_1 nord 626485.3 2002-09-30T00:00:00+0200 9 S_1 nord 626485.3 2002-12-05T00:00:00+0100 10 S_1 nord 626485.3 2003-02-07T00:00:00+0100 the third colomn (sensor_data) is a distance in meters. each distance has a date (sensor_date) for each row I would like to find the difference from the first distance (with the min date) and the distance. I know it's difficult to understand.. I give you an example: for the first procedure S_10 I should find...
2013 Dec 22
2
How do I separate elements of a vector by comma?
I have a vector like this (this vector is a colomn of a data set): > 3 5 2 3 7 4 7 8  8 9 0 1 4 I want to separate elements of the vector by comma like this: > 3,5,2,3,7,4,7,8,8,9,0,1,4 How can do this? Thanks. Elham [[alternative HTML version deleted]]