similar to: Help with basic loop

Displaying 20 results from an estimated 3000 matches similar to: "Help with basic loop"

2012 Nov 07
1
Newbie question : selecting subset of a Matrix
I have a matrix, I would like to use it like I use where query on an SQL table Let's say my matrix is > wok who task 1 joe task1 2 joe task2 3 joe task3 4 jack task1 5 jack task2 I want to extract a matrix that contains only rows where who = "joe" and task != "task2" The result would be the following matrix 1 joe task1 2 joe task3 How can I do
2007 Feb 05
0
simple rights question
Dear all, I got the following situation, a share called "Bureaus", with the follwong subdirs: /Bureaus/A /Bureaus/B /Bureaus/C etc. where A,B,C.. are the bureau names under all the bureau names are directories: A/Task1 A/Task2 A/Task3 A/Archive For all the bureau names. Groups: everyone is a member of "Domain Users", and that's always the primary group. And, a group
2007 Feb 08
0
simple right question
Dear all, I got the following situation, a share called "Bureaus", with the follwong subdirs: /Bureaus/A /Bureaus/B /Bureaus/C etc. where A,B,C.. are the bureau names under all the bureau names are directories: A/Task1 A/Task2 A/Task3 A/Archive For all the bureau names. I've got groups, a groups, everyone is a member of "Domain Users", and that's also always the
2012 May 09
3
R exercises - too confusing for me.
Hi! I tried everything to avoid asking somebody but I have absolutely no clue how to solve this tasks. I'll be really glad if someone could explain that to me... 1. http://r.789695.n4.nabble.com/file/n4619850/task1.gif Well, the first part is of course no problem but I have really trouble with the tasks i) and ii). just don't know how to write the function and why I should use
2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
Given the following hash: #... @project_list = { ''Contract0'' => nil, ''Contract1'' => { ''Project1'' => nil, ''Project2'' => nil, ''Project3'' => { ''task1'' =>
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
Dear R-help, I am creating a two lattice plots (a densityplot() and xyplot()) that have the same x-axes and then 'printing' them onto the same page, one above the other (see end of email for an example to generate the graph). With different labels on the y-axis for each plot the left spacing is different, and the x-axes don't align vertically. Although I can manually modify the
2003 Nov 04
2
help with nomogram function
I have fitted a logistic regression model > failed.lr2$call lrm(formula = failed ~ Age + task2 + Age:task2, data = time.long, na.action = na.omit) using the Design package functions and would like to generate a nomogram from this model. the datadist information is generated and stored in > ddist time.long$Age time.long$task2 Low:effect 45
2018 Apr 22
3
Gantt Chart Using Plotrix
Hi Sarah Thank you very much for your pointers. Is there a way to specify the date string as POSIXct when reading in? I have tried the following (very inelegant way) and still have no luck. --- Begin Code --- # 1st read in the spreadsheet with stringsAsFactors set to FALSE > abc <- read.csv("gntr1.csv", header=TRUE, stringsAsFactors=FALSE) > abc code tasks.labels
2020 May 31
0
[PATCH v3] virtio_vsock: Fix race condition in virtio_transport_recv_pkt
From: Jia He <justin.he at arm.com> Date: Sat, 30 May 2020 09:38:28 +0800 > When client on the host tries to connect(SOCK_STREAM, O_NONBLOCK) to the > server on the guest, there will be a panic on a ThunderX2 (armv8a server): ... > The race condition is as follows: > Task1 Task2 > ===== ===== > __sock_release
2018 Apr 23
0
Gantt Chart Using Plotrix
Hi, Your attempt didn't work because you didn't do what I suggested, which was make sure that your data frame matched the example given in the help for gantt.chart. Here's what you have: > str(cdfg) 'data.frame': 3 obs. of 3 variables: $ c1d1: Factor w/ 3 levels "task 1","task 3",..: 1 3 2 $ c2d1: POSIXct, format: "2018-04-01"
2020 May 29
0
[PATCH] virtio_vsock: Fix race condition in virtio_transport_recv_pkt
Hi Jia, thanks for the patch! I have some comments. On Fri, May 29, 2020 at 09:31:23PM +0800, Jia He wrote: > When client tries to connect(SOCK_STREAM) the server in the guest with NONBLOCK > mode, there will be a panic on a ThunderX2 (armv8a server): > [ 463.718844][ T5040] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 > [ 463.718848][ T5040]
2020 May 29
0
[PATCH v2] virtio_vsock: Fix race condition in virtio_transport_recv_pkt
On Fri, May 29, 2020 at 11:21:02PM +0800, Jia He wrote: > When client tries to connect(SOCK_STREAM) the server in the guest with > NONBLOCK mode, there will be a panic on a ThunderX2 (armv8a server): > [ 463.718844][ T5040] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 > [ 463.718848][ T5040] Mem abort info: > [ 463.718849][ T5040] ESR =
2004 Jun 27
3
memdisk: DOS as a PreOS
Hello! Is it possible to load a virtual DOS Floppy with memdisk to do a few things (e.g. scan for viruses, copy a hard disk image from the network to the local disk) and continue booting from the local hard disk without a reboot? Cheers Alex
2010 May 18
3
"Re: Change class factor to numeric"
sorry I had a mistake sending my question without a subject. I do resend again. Please excuse me. > Hello > I have a data array with soil variables (caperf), in which the variable "clay" is factor (as I see entering str(caperf)) . I need to do a regression model, so I need to have arcilla (=clay) as a numeric variable. For that I have entered > >
2006 Mar 09
4
sort-weirdness - active record issue?
I''m selecting data into a controller and sorting it. The code (in the controller) looks like this: def index @assignments = [] tasks = Task.find(:all, :conditions => ["person_id = ? and actual_end_date is null", session[:user].id.to_s ]) issues = Issue.find(:all, :conditions => ["person_id = ? and status <>
2010 May 19
3
save in for loop
Dear users, My problem concerns save() within a for loop. Here is my code: for (i in 1:4) { temp <- data.frame(a=(i+1):(i+10), b=LETTERS[(i+1):(i+10)]) filename <- paste("file", i, sep="") assign(filename, temp) save(filename, file=paste(filename, ".rda", sep="")) } As you can see, save() doesn't work as I would like: (1) the object
2018 Apr 22
0
Gantt Chart Using Plotrix
Hi, The help file for gantt.chart states that dates must be in POSIXct format, and the example shows how to do that. There's no reason that I can see that you can't use a data frame as input to gantt.chart, but you need to be very careful that your data frame matches the correct format. I bet also that your character fields were imported as factors, because you didn't specify not to.
2018 Apr 22
2
Gantt Chart Using Plotrix
>From the help file for plotrix: " ... x - a list of task labels, start/end times and task priorities as returned by get.gantt.info ..." So I try to create an object that will contain this information. abc <- read.csv("gntr1a.csv") # The above csv file was generated from MS .xlsx file containing the tasks and corresponding dates > abc code tasks.labels
2010 Mar 11
3
Help function "?" in R 2.10.1
Hello everyone, I have versions 2.7.2 and 2.10.1 installed on a machine that has no access to internet. In 2.7.2 I can use ? to get help on functions, which in 2.10.1 that does not work, all I see is "starting httpd help server...done" and then nothing. Have I downloaded 2.10.1 incorrectly (=forgot to tick some box for local help file repository) or is the internet help now the
2010 Nov 01
2
number of items to replace is not a multiple of replacement length
Hey all, I am writing a function in which I will have a matrix of 4 columns and a variable amount of rows. The first to columns will always contain be of the Character type, the third and fourth columns can be a variation of data types, usually characters and integers, but sometimes lists or matrices. At one point the code makes, for each row, a copy of that row, then it makes some adjustments