Displaying 20 results from an estimated 21 matches for "colomns".
Did you mean:
colomn
2006 Aug 04
2
Data frame referencing?
...-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) # selection of the
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" is a 1, "Finished"
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 Gunte...
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 m...
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
>>...
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 returns me
2011 Sep 17
1
Replacing matching values by related values
I am trying to replace values of a vector (consisting of 15 values) by a value that is related to a matching value in a dataset (consisting 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
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
Hello list
I have this file
0 121289479 25
0 212599129 1
0 285254098 21
0 444889848 45
0 469197123 30
0 640007403 82
0 718215617 8
0 758534043 56
0 799706577 4
0 814441385 93
0 843545059 37
0.2 121289479 6
0.2 285254098 3
0.2 444889848 6
0.2 469197123 13
0.2 640007403 24
0.2 718215617 3
0.2 758534043 2
0.2 799706577 2
0.2
2012 Mar 27
1
matrix(unlist(strsplit(""))) 'missing value' issue
...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
thought about making R add ':9999999' whenever it encounters 9999999 as a
sort of a workaround for the problem but I have no idea how to do that.
I hope I made it a little clear what the probl...
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
2003 Jul 09
0
model selection in lme when corARMA is assumed
I have a data analysis job for which lme may be used. Prof. Spencer Graves had helped me much on that. I'm really appreciated for that. Could anybody else in the list give me some hints from other perspectives? I hope I can learn as much as possible for this complicated real data.
Thanks in advance.
Hanhan
To briefly describe my data: My data is health effect measurements (y) and personal
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
######
a...
2011 Feb 01
1
multi-Operations on a matrix
Hello everybody.
I have this object
procedure property sensor_data sensor_date
1 S_10 nord 626821.0 2002-09-30T00:00:00+0200
2 S_10 nord 626821.0 2002-12-05T00:00:00+0100
3 S_10 nord 626821.1 2008-07-31T00:00:00+0200
4 S_1000 nord 626496.8 2002-09-30T00:00:00+0200
5 S_1000 nord 626496.8 2002-12-05T00:00:00+0100
6 S_1000
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]]