search for: four

Displaying 20 results from an estimated 7967 matches for "four".

Did you mean: for
2023 Jan 27
1
implicit loop for nested list
I would use replicate() to do an operation with random numbers repeatedly: ``` mysim <- replicate(10, { two.mat <- matrix(rnorm(4), 2, 2) four.mat <- matrix(rnorm(16), 4, 4) list(two.mat = two.mat, four.mat = four.mat) }) ``` which should give you a matrix-list. You can slice this matrix-list just like normal, then cbind it in one step: ``` two.mat <- do.call("cbind", mysim["two.mat", ]) four.mat <- do.c...
2023 Jan 27
3
implicit loop for nested list
> > I am looking for a more elegant way to write below code. > > #Simulation results have different dimensions > mysim <- lapply(1:10, function(y) { > two.mat <- matrix(rnorm(4), nrow = 2) > four.mat <- matrix(rnorm(16), nrow = 4) > list(two.mat = two.mat, four.mat = four.mat) #results with different dimensions > }) > > #Collect different components of simulation results > #Is it possible to do this with implicit loops? > mat2 <- matrix(nrow = 2, ncol = 1) > m...
2010 Dec 10
2
Could concurrent R sessions mix up variables?
...rogram, there's a variable X that I set to 1, 5, 10, 20, depending on how sensitive I want the simulation to be to a certain parameter. When I just run one instance of R, the X variable stays the same throughout the program. I have a quad-core machine, so I'd like to take advantage of all four processors. If I open up four sessions and set X to 1, 5, 10, and 20 in those different sessions, then run all four simulations all the way through (about eighteen hours of processing time) at the same time, the variable X ends up being 20 at the end of all four sessions. It's as if R mixed u...
2009 Apr 14
2
matching lists
Dear All,   Here's my problem. I have two lists:   > v [[1]] [1] "five" [[2]] [1] "four" [[3]] [1] "three" [[4]] [1] "two" [[5]] [1] "one" [[6]] [1] "six" [[7]] [1] "five"  "four"  "three" "two"   "one"   "six"  [[8]] [1] "four"  "three" "two"   &quot...
2011 Nov 12
1
Simulation over data repeatedly for four loops
...oduce the same simulation over 4 groups of data. My ability with for loop is null, in particular related to dimensions as I always get, no matter what I try, "number of items to replace is not a multiple of replacement length" This is what I intend to do: replicate this operation for four times, where the index for the four groups is in the part of the code: datiPc[[1]][,2]. I have to replicate the following code 4 times, where the changing part is in the data from which I pick the sample, the data that are stored in datiPc[[1]][,2]. If I had to use data for the four samples, I...
2009 Mar 15
1
Contour plots of four two-dimensional matrices
I have four large two-dimensional matrices of which I want to create contour plots. Something like filled.contour(<matrix>) contourplot(<matrix>) works but only gives me one plot at a time. If I combine the four matrices into one three-dimensional matrix, which I'll name "seven", th...
2013 Jul 05
7
how to use single login page for users in four models
how to use single login page for users in four models -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3Mbo...
2006 Aug 16
6
read.csv issue
I'm trying to read in some data from a .csv format and have come across the following issue. Here is a simple example for replication # A sample .csv format schid,sch_name 331-802-7081,School One 464-551-7357,School Two 388-517-7627,School Three \& Four 388-517-4394,School Five Note the third line includes the \ character. However, when I read the data in I get > read.csv(file.choose()) schid sch_name 1 331-802-7081 School One 2 464-551-7357 School Two 3 388-517-7627 School Three & Four 4 388-51...
2008 Oct 10
4
Polycom 330 not dialing 4 digit extensions beginning with 11xx
I have four Polycom 330 phones connected to an asterisk system. There are other VoIP phones connected too. All of the extensions are four digits beginning with 11. From any of the phones, except the Polycom, picking up the handset to call extension 1103 for example works fine. With the Polycom 330,...
2011 Feb 07
1
Four paramete logistics.
Hi, I have to do a four point logistics for a dataset. All I have is the absorbance value for different proteins and need to get the four Point values. I have no idea where to start. Any suggestions would be much helpful. Thanks Ramya -- View this message in context: http://r.789695.n4.nabble.com/Four-paramete-logis...
2013 Oct 05
1
make a file from four individual files. but keys can be missing among files.
Hello, I have a list of four files. Each file is a list of gene models, and each gene model has attributes in file columns. The sample_week-over-sample_week fold change value foreach i in file is in column 5. The gene model ID is in column 1. To make it more complicated, each gene i may not be found in all four files. I've...
2012 Oct 10
2
svyplot
Hello, Using the svyplot () function, I have plotted four graphs that are saved in four different .png files. I am looking for examples how to redraw the same four graphs within grid viewports so that they stay together on a page. The goal is to create one .png file that will include all four graphs (2 rows, 2 columns). Any help would be appreciated....
2013 Aug 20
1
Samba 4.0.9 winbind isn't passing through uid and gid numbers from Win 2003 R2
...h I know the uid's and gid's are set up properly in Windows as the following: net ads search '(|(uidNumber=*)(gidNumber=*))' objectCategory sAMAccountName uidNumber gidNumber -P shows for instance: sAMAccountName: user objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=the-four-horsemen,DC=org uidNumber: 10004 gidNumber: 10004 I can see in the winbindlog the gid at least coming back as the wrong number: userinfos: struct wbint_userinfo acct_name : * acct_name...
2006 Jun 27
3
looking for a more efficient R code.
Dear R-users I have four simple linear models, which are all in the form of a*X+b The estimated parameter vectors are a <- c(1,2,3,4) b <- c(4,3,2,1) My goal is to draw a plot where x-axis is X (range from -100 to 100) and y-axis is the sum of all four linear models X <- seq(-100,100, length=10000) plot(X, sum...
2006 May 12
4
Title of page with multiple plots
I want to place four plots on a page, and I would like to have all four plots share a common title. I have tried the following code, but the title is centered over the fourth graph and not centered across all four plots. Does anyone have any suggestions? R 2.1.1 windows xp oldpar<-par(mfcol =c(1,4),ask=TRUE) plo...
2005 Dec 08
1
read.table error
Hey, Once again I ask for some quick help. Here is some code: ovendata<- read.table("ovens.dat",header=TRUE) attach(ovendata) print(ovendata) Here is the .dat file: D One Two Three Four Five Seven Eight 1130 254 252 375 384 252 375 876 127 250 250 384 386 251 378 875 Here is the R Console output: > ovendata<- read.table("ovens.dat",header=TRUE) Warning message: incomplete final line found by readTableH...
2005 Feb 27
12
Four Days on Rails
...ations - quite hard going. To help others make the same journey, I''ve put together a ''next steps'' tutorial. I mentioned this on the list last week, and I''ve had some really brilliant feedback off-list as a result. I''d now like to think that ''Four Days on Rails'' is ready for general release (v1.4). It''s available from http://rails.homelinux.org, along with the code for the application described in the document. I''d like to thank the Rails developers for a really cool framework, and I hope ''Four Days on...
2006 Jul 31
3
getting the last four digits of a string or number
I want to trim down a phone number to the last four digits before saving it to the db. How would I do this? For example, 800-555-1212 which could also be 8005551212, i want to save just 1212 (last four digits) only. -- Posted via http://www.ruby-forum.com/.
2014 Jul 30
1
Centos 7: printing four copies with Libreoffice prints garbage
...ked perfectly under Centos 6 when I told cups that it was a Xerox Phaser 3150. It works under Centos 7, too. I can print pdf files from evince and whatnot with no problems, and printing one, two or three copies of a document from libreoffice works as well. However, if I tell libreoffice to print four copies of a document ("number of copies" =4) then I get garbage printed on the printer; many many pages containing one or two lines of garbage characters. If I run the spadmin program and tell it to print a test page, it prints fine. Two test pages, fine. Three, also fine. Four test pa...
2004 Dec 09
12
four wildcards in a single pc
Hi. Please excuse me asking this again. But it really puzzles me. We're installing asterisk at a branch office at NJ (HQ is at Petach-Tikva) It'll need to support 5 POTS lines, 11 analog extensions and four VOIP phones. I wanted to go with a T1 card from digium and a channel bank, but we have a dead line. It has to be up and running by January 1st. I don't have the time to start shopping at ebay, where you don't know what you'll get, and you need to install, under time pressure something...