Displaying 4 results from an estimated 4 matches for "154l_aa".
2006 Dec 08
1
question for if else
I have a data set like this
I want to assign "outward" to Y if sc <90 and assign "inward" to Y if sc>=90.
then cbind(p1982,Y) to get like these
p aa as ms cur sc Y
1 154l_aa ARG 152.04 108.83 -0.1020140 92.10410 inward
2 154l_aa THR 15.86 28.32 0.2563560 103.67100 inward
3 154l_aa ASP 65.13 59.16 0.0312137 7.27311 outward
4 154l_aa CYS 57.20 49.85 -0.0549589 72.97930 outward
5 154l_aa TYR 28.87 31.75 0.0526457 96.11660 inward
6 154l_aa A...
2006 Dec 14
1
subset question
...GLU HIS ILE LEU LYS MET PHE PRO SER THR TRP
TYR VAL
it seems pr$aa don't have level GLU, but it list this level.
I don't understand this, Is there some reason for these?
thanks,
> str(p1982)
'data.frame': 465979 obs. of 6 variables:
$ p : Factor w/ 1982 levels "154l_aa","1A0P_aa",..: 1 1 1 1 1 1 1 1 1 1 ...
$ aa : Factor w/ 19 levels "ALA","ARG","ASN",..: 2 16 4 5 18 3 19 3 2 9 ...
$ as : num 152.0 15.9 65.1 57.2 28.9 ...
$ ms : num 108.8 28.3 59.2 49.9 31.8 ...
$ cur: num -0.1020 0.2564 0.0312 -0....
2006 Dec 08
1
(no subject)
I have a data set like this:
if I want to less than 200000 obs from this data set.
How can I do these?
> str(p1982)
'data.frame': 465979 obs. of 6 variables:
$ p : Factor w/ 1982 levels "154l_aa","1A0P_aa",..: 1 1 1 1 1 1 1 1 1 1 ...
$ aa : Factor w/ 19 levels "ALA","ARG","ASN",..: 2 16 4 5 18 3 19 3 2 9 ...
$ as : num 152.0 15.9 65.1 57.2 28.9 ...
$ ms : num 108.8 28.3 59.2 49.9 31.8 ...
$ cur: num -0.1020 0.2564 0.0312 -0....
2006 Dec 12
1
Is my data set too large
...R?
thanks,
Aimin
> p1982<- read.csv("p_1982_aa.csv")
> names(p1982)
[1] "p" "aa" "as" "ms" "cur" "sc"
> str(p1982)
'data.frame': 465979 obs. of 6 variables:
$ p : Factor w/ 1982 levels "154l_aa","1A0P_aa",..: 1 1 1 1 1 1 1 1 1 1 ...
$ aa : Factor w/ 19 levels "ALA","ARG","ASN",..: 2 16 4 5 18 3 19 3 2 9 ...
$ as : num 152.0 15.9 65.1 57.2 28.9 ...
$ ms : num 108.8 28.3 59.2 49.9 31.8 ...
$ cur: num -0.1020 0.2564 0.0312 -0....