search for: m10

Displaying 20 results from an estimated 48 matches for "m10".

Did you mean: 10
2013 Feb 07
4
help with creating new variables using a loop
Hi there, I've got a set of 10 numeric variables called Mood1 to Mood10 in a dataset called mood. I'm trying to create a set of 10 new variables called m1 to m10 so that m1=Mood1*1, m2=Mood2*2, etc to m10=Mood10*10 Trawling through the internet, I eventually tried the following code: for (i in 1:10){ assign(x=paste0("mood$m",i), value=paste0("mood$Mood",i)*i, envir=.GlobalEnv) } unfortunately this doesn't work...
2009 Apr 22
4
read.table or read.csv without row index?
Hello all, Probably my concepts about the data.frame and matrix and array in R are not clear, I need some clarification to help me understand them better. >M <- read.table("test1.csv",sep=",",row.names=NULL,header=T) gives me: M as M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 1 9 11 14 15 18 20 20 20 20 20 2 3 4 8 9 11 12 14 15 15 15 3 4 5 8 8 9 9 9 9 9 9 4 4 5 7 8 8 8 8 8 8 9 1. How can I read the csv file to: M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 [1,] 9 11 14 15 18 20 20 20 20 20 [2,] 3 4 8 9 11 12 14 15 15 15 [3,] 4 5 8 8 9 9 9...
2009 Jun 11
3
Matrix manipulation
Hello everyone, I have a couple of fairly simple questions (I hope) the answers to which I cannot find through the documentation at the moment. 1. I would like to delete the a row from a matrix if a certain elimination criterion is met. I am familiar with x <- x[-7,] (to remove row 7, for example). Are there any other means of removing an entire row? 2. Is there a single command that
2008 Mar 30
0
[kvm-ia64-devel] [09/17] [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64.
...+= post_update; The sign extension is not done correctly here. (This has been fixed in Xen code). > + post_update = (inst.M3.i << 7) + inst.M3.imm7; > + if (inst.M3.s) > + temp -= post_update; > + else > + temp += post_update; Ditto. > + post_update = (inst.M10.i << 7) + inst.M10.imm7; > + if (inst.M10.s) > + temp -= post_update; > + else > + temp += post_update; Ditto. > + post_update = (inst.M10.i << 7) + inst.M10.imm7; > + if (inst.M10.s) > + temp -= post_update; > + else > + temp += post_update; D...
2009 Jun 11
2
More basic question
I have encountered a more fundamental problem in my data set. I''m using read.csv, and all the data are imported as character. How do I do a string comparison in a line like this: M10[ !sapply(1:10, function(x)666 %in% M10[x,]), ] Alternately, how do I change the class type on a column in a data frame from character to numeric? Thank you very much. Payam [[alternative HTML version deleted]]
2011 Aug 13
1
Own R function doubt
...mbras*R M6<-P6*M T7<-(R6-M6+B)/(P6-M6+R6) P7<-P6-B R7<-P7*Hembras*R M7<-P7*M T8<-(R7-M7+B)/(P7-M7+R7) P8<-P7-B R8<-P8*Hembras*R M8<-P8*M T9<-(R8-M8+B)/(P8-M8+R8) P9<-P8-B R9<-P9*Hembras*R M9<-P9*M T10<-(R9-M9+B)/(P9-M9+R9) P10<-P9-B R10<-P10*Hembras*R M10<-P10*M result<-list(B,T1,P1,R1,M1,T2,P2,R2,M2,T3,P4,R4,M4,T5,P5,R5,M5,T6,P6,R6,T6,P7,R7,M7,T8, P8,R8,M8,T9,P9,R9,M9,T10,P10,R10,M10) return(result) } library(memisc) Gestion<-as.data.frame(Simulate(Ciervos(K1, K0, A, R,M,Pi,Hembras), expand.grid(K1=c(420,580),K0=c(300,600),A=3,R=0.4,M=0...
2012 Nov 07
1
[LLVMdev] using large structures in registers/returns
...n registers. Is this fully supported on all platforms? Does it always convert to creating a hidden parameter when too large? For example (assume very.large is too big to fit in the target machine registers): define %very.large @get_struct() { %m1 = insertvalue %very.large undef, i32 10, 0 ... %m10 = insertvalue %very.large %m9, i32 25, 9 ret %very.large %m10 } define void @use_struct( %very.large %m ) { ... } define i32 @main() { %m = call %very.large @get_struct() call void @use_struct( %very.large %m ) } Will this work on all targets? -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- --...
2009 May 27
1
How to write a loop?
Dear R helpers,   Following is a R script I am using to run the Fast Fourier Transform. The csv files has 10 columns with titles m1, m2, m3 .....m10.     When I use the following commands, I am getting the required results. The probelm is if there are 100 columns, it is not wise to define 100 commands as fk <- ONS$mk and so on. Thus, I need some guidance to write the loop for the STEP A and STEP B.   Thanking in advance   Regards   Maithili...
2008 Dec 26
3
lm() with same formula but different column/factor combinations in data frame
..."1" 4) UC, levels: "1X1", "2X2" 5) UncDmd: Response variable in the linear model 6-16) M1...M11: Explanatory variables in the linear model A few sample rows in the data frame are as follows: > TEST1[1:15,] Community WT LTC UC UncDmd M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 1 20232 E L 1X1 1.000000 0 0 0 0 0 0 0 0 0 0 1 2 20232 E L 2X2 0.000000 0 0 0 0 0 0 0 0 0 0 1 3 20232 E M 1X1 1.000000 0 0 0 0 0 0 0 0 0 0 1 4 20232 E M 2X2 1.000000 0 0 0 0 0 0 0 0 0 0 1 5 20232 E S 1X1...
2001 Jun 05
2
a bug? (PR#968)
...80 10 1 533 M09 MT2 MT 180 10 1 534 M09 MT2 MT 180 10 1 535 M09 MT2 MT 180 10 0 536 M09 MT2 MT 180 10 0 537 M09 MT2 MT 180 10 0 538 M09 MT2 MT 180 10 0 539 M09 MT2 MT 180 10 0 540 M09 MT2 MT 180 10 0 541 M09 MT2 MT 180 10 0 542 M09 MT2 MT 180 10 0 543 M09 MT2 MT 180 10 0 544 M09 MT2 MT 180 10 0 545 M10 MT2 MT 180 10 1 546 M10 MT2 MT 180 10 1 547 M10 MT2 MT 180 10 1 548 M10 MT2 MT 180 10 1 549 M10 MT2 MT 180 10 1 550 M10 MT2 MT 180 10 1 551 M10 MT2 MT 180 10 1 552 M10 MT2 MT 180 10 1 553 M10 MT2 MT 180 10 1 554 M10 MT2 MT 180 10 0 555 M10 MT2 MT 180 10 0 556 M11 MT2 MT 180 10 1 557 M11 MT2 MT 180...
2004 Jan 07
1
generic name of variables
Dear R-list, I wish a very happy new year and send you a little question: I have different variables which names are m1, m2, m4, .., m10, ... and want to obtain for example mean of each of them without typing each mean(m1), mean(m2), .... What is the solution for decomposing names in mXX? With my best regards, EA. ============================================ Erik-André SAULEAU SEAIM Hôpital du Hasenrain BP 1070 87, Avenue de Altk...
2009 Nov 30
1
multiple column argument in formula (MASS:lda)
...n[, 3:80]), collapse = "+")') (This is my english translation of the error msg while i use R in spanish so it should look different in your machines) The funny thing is that if i use: >paste(names(cien[,3:80]),collapse="+") [1] "X.SO.M2+X.SO.M4+X.SO.M6+X.SO.M8+X.SO.M10+X.SO.M12+..... and then copy and paste the result in the formula: > lda(Grupo~X.SO.M2+X.SO.M4+X.SO.M6+X.SO.M8+X.SO.M10+X.SO.M12+....,data=cien) then there's no error!!! the lda runs just fine. I know i might be doing something wrong but i don't know where so could you please enlighten...
2009 Oct 16
2
Matrixes as data
Hola! I am working on a problem where data points are (square) matrices. Is there a way to make a "vector" of matrices, such that it can be stored in a data.frame? Can that be done with S3? or do I have to learn S4 objects & methods? Kjetil
2011 Jan 24
1
ggplot2 - ribbon
Dear List, I am having trouble setting the transparency of a ribbon in ggplot2 and was wondering if anybody had any suggestions so far i have a plot exactly as i want it and i want to add a ribbon connecting the ymax and ymin, whci i do with the following command m10 + stat_summary(geom="ribbon", fun.ymin="min", fun.ymax="max") However the ribbon is a dark grey and i want to make it much lighter or change the colour. I was wondering if anybody had any ideas? I have kept the code used so far brief as it is quite long, however i ca...
2003 Dec 14
2
ISOLINUX fails at boot on Award BIOS v6.00PG
Hello, I don't know if it's ISOLINUX or a broken BIOS, this is the first time ever seeing this error. "Extremely broken BIOS" on a EPIA -M10 BIOS Rev 2.07 (latest ver available) EDEN VIA mini-ITX mobo. ISOLINUX on RH8 ver 1.75, RH9 ver 2.00 and Yarrow ver 2.06 all produce the same type of error. RH 7.3 and Lindows boot and build without any problem but I don't think they use ISOLINUX as a boot loader. Any thoughts would be apprec...
2007 Apr 04
2
Newbie: Simple loops: complex troubles
...o java (well, i dont remember it really well, but anyway) I have having a really difficult time making simple loops to work. I got the following to work: ## ##Creates objects Ux1, Ux2, Ux2 etc. that all contain n numbers in a random distribution ## m<-c(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10)#these are defined as numbers (means) v<-c(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10)#these are defined as numbers (variances) n<-50 for(k in 1:g) { assign( paste("Ux", k, sep=""), rnorm( n , assign(paste("m",1,sep=""),m[k]) , assign(paste...
2020 May 12
1
[PATCH 1/3] drm/radeon: remove AGP support
..._ATI, 0x5964, > - 0x148c, 0x2073, 4}, > - /* Intel 82855PM Processor to I/O Controller / Mobility M6 LY Needs AGPMode 1 (deb #467235) */ > - { PCI_VENDOR_ID_INTEL, 0x3340, PCI_VENDOR_ID_ATI, 0x4c59, > - PCI_VENDOR_ID_IBM, 0x052f, 1}, > - /* Intel 82855PM host bridge / Mobility 9600 M10 RV350 Needs AGPMode 1 (lp #195051) */ > - { PCI_VENDOR_ID_INTEL, 0x3340, PCI_VENDOR_ID_ATI, 0x4e50, > - PCI_VENDOR_ID_IBM, 0x0550, 1}, > - /* Intel 82855PM host bridge / RV250/M9 GL [Mobility FireGL 9000/Radeon 9000] needs AGPMode 1 (Thinkpad T40p) */ > - { PCI_VENDOR_ID_INTEL, 0x3340,...
2008 Jul 18
0
Starcraft + wine 1.1.1 @ FreeBSD 7.0
...nd it seems to work fine. I installed some linux games (unreal tournament 2004, unreal tournament, tuxracer) and I suppose that DRI works rather fine. My VGA is Radeon 9600 mobile. The driver is radeon. > > [asmo at t42:~]% dmesg | grep drm > drm0: <ATI Radeon RV350 Mobility 9600 M10 NP> on vgapci0 > info: [drm] AGP at 0xd0000000 256MB > info: [drm] Initialized radeon 1.25.0 20060524 > info: [drm] Setting GART location based on new memory map > info: [drm] Loading R300 Microcode > info: [drm] writeback test succeeded in 1 usecs > drm0: [ITHREAD] > Co...
2009 Aug 18
15
dlm stress test hangs OCFS2
This email is also sent to cluster-devel at redhat.com. Since this issue is about both dlm and ocfs2, I send the email here to look for help from upstream. This is an already known issue. on ocfs2 with user space cluster stack, run the test script from http://people.redhat.com/~teigland/make_panic on the mounted ocfs2 volume from 2 nodes simultaneously, the access to ocfs2 volume on both nodes
2020 May 11
0
[PATCH 1/3] drm/radeon: remove AGP support
...EL, 0x2570, PCI_VENDOR_ID_ATI, 0x5964, - 0x148c, 0x2073, 4}, - /* Intel 82855PM Processor to I/O Controller / Mobility M6 LY Needs AGPMode 1 (deb #467235) */ - { PCI_VENDOR_ID_INTEL, 0x3340, PCI_VENDOR_ID_ATI, 0x4c59, - PCI_VENDOR_ID_IBM, 0x052f, 1}, - /* Intel 82855PM host bridge / Mobility 9600 M10 RV350 Needs AGPMode 1 (lp #195051) */ - { PCI_VENDOR_ID_INTEL, 0x3340, PCI_VENDOR_ID_ATI, 0x4e50, - PCI_VENDOR_ID_IBM, 0x0550, 1}, - /* Intel 82855PM host bridge / RV250/M9 GL [Mobility FireGL 9000/Radeon 9000] needs AGPMode 1 (Thinkpad T40p) */ - { PCI_VENDOR_ID_INTEL, 0x3340, PCI_VENDOR_ID_ATI,...