similar to: nested loop

Displaying 20 results from an estimated 4000 matches similar to: "nested loop"

2004 Feb 21
3
saving variables created by functions in the workspace
Hello , just a simple question from a beginner: I write the function: plotsinx <- function() { x<-seq(0,2*pi,0.01) sinx<-sin(x) plot(sinx) } I recall it: plotsinx() and the plot works properly. but then in the workspace if I want to look at the values of sinx the following error is displayed: Error: Object "sinx" not found. How to save the variables created by the function on
2004 Feb 17
10
How to write efficient R code
I have been lurking in this list a while and searching in the archives to find out how one learns to write fast R code. One solution seems to be to write part of the code not in R but in C. However after finding a benchmark article (http://www.sciviews.org/other/benchmark.htm) I have been more interested in making the R code itself more efficient. I would like to find more info about this. I have
2005 May 17
2
cumsum on chron objects
Hi, Is there some alternative to cumsum for chron objects? I have data frames that contain some chron objects that look like this: DateTime 13/10/03 12:30:35 NA NA NA 15/10/03 16:30:05 NA NA ... and I've been trying to replace the NA's so that a date/time sequence is created starting with the preceding available value. Because the number of rows with NA's following each available
2003 Oct 01
4
Solving a tridiagonal system
I need to find solutions to a tridiagonal system. By this I mean a set of linear equations Ax = d where A is a square matrix containing elements A[i,i-1], A[i,i] and A[i,i+1] for i in 1:nrow, and zero elsewhere. R is probably not the ideal way to do this, but this is part of a larger problem that requires R. In my application it is much easier (and much faster) to generate the diagonal and
2005 Apr 07
2
newline in lattice axis label
Hi, I have a 3 panel xyplot with different variables in the y axis. I'm trying to insert a newline after "Width (cm)," in the ylab argument as in the example below. My goal is to have the y axis label broken into two lines, split after the string just mentioned. plotfun <- function() { fakedf <- data.frame(A = sample(1:100, 50), B = rnorm(50),
2005 Feb 23
1
MS Access, Endnote, among others
Hello, Has anybody been able to successfully install MS Office XP Pro in Wine? I don't care much about the whole suite, I need MS Access, but since I have a bundled cd, I don't have much choice. Apparently several folks have had similar problems in this list, and I haven't found solutions. Wine-version is 0.0.20041201-1 Debian unstable package. I'm not sure I'm starting the
2005 Mar 23
2
alternative to 'groups' for lattice bwplot()
Hi, Is there some alternative to the 'groups' argument in lattice's bwplot function for boxplots? Say in the example below: bwplot(yield ~ site | year, data = barley) you want to have two side by side boxplots per site, corresponding to each year in the barley data frame. Ideally, the space between boxplots of the same site should be smaller than that between boxplots of different
2005 Feb 22
6
rodbc or unixodbc error
Hi, I'm trying to establish a connection to a MySQL database, and am using the rodbc package for it. This is in a GNU/Debian Linux box, with the corresponding Debian unstable packages. I can login to my MySQL databases from any shell and directory, so the problem is probably not there. Here's an example of what I'm doing: R> odbcConnect("test",
2005 Nov 30
3
setting R_LIBS
Hello, I'm adding a private library tree in my home directory by adding this to my ~/.Renviron: R_LIBS="~/R/library:${R_LIBS}" so that once in R: R> cat(Sys.getenv("R_LIBS"), "\n") ~/R/library:/usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library Is this the best way to proceed? Cheers, -- Sebastian P. Luque
2006 Jul 14
2
chron vs. POSIX
Hi, One of the big decisions when writing code is how to handle dates and times. Gabor Grothendieck provided an excellent overview of the issue in his R News 4/1 (2004) article, and many users and developers are probably using it as a guide. The proposed guideline is to use the simplest class required; as Gabor put it "use Date if possible, otherwise use chron, and otherwise use
2004 Oct 05
2
correct my method of estimating mean of two POSIXlt data frames
Hello, I searched the archives but could not come to a solution. I have to two columns of information t_start_cdt looks like: > t_start_cdt[1:4] [1] "2003-07-09 11:02:25" "2003-07-09 11:10:25" "2003-07-09 11:30:25" [4] "2003-07-09 12:00:25" > class(t_start_cdt) [1] "POSIXt" "POSIXlt" t_end_cdt looks like: > t_end_cdt[1:4]
2004 Dec 24
6
Sorting problem
Hi I'm using R 2.0 in SuSE 9.2. When I plot data as a boxplot, the boxes appear on the plot in alphabetical order (of group) rather than the order in which they appear in the data. So far, the only thing I can do to fix this is to prefix the group labels with a,b,c...etc to trick R into plotting them in the right order. Can sorting be turned off? How should I address this sensibly? Thanks
2012 Mar 14
0
diveMove 1.3.1
Version 1.3.1 of diveMove is now available on CRAN. Changes since previous version (1.2.9) are: o Improved formatting of code in vignette. Figure resolution reduced to satisfy package check requirements. o At least R 2.13.0 is required. o Dives occurring in "trivial wet" periods are now identified. o Improved validity checking for 'TDRcalibrate' objects.
2012 Mar 14
0
diveMove 1.3.1
Version 1.3.1 of diveMove is now available on CRAN. Changes since previous version (1.2.9) are: o Improved formatting of code in vignette. Figure resolution reduced to satisfy package check requirements. o At least R 2.13.0 is required. o Dives occurring in "trivial wet" periods are now identified. o Improved validity checking for 'TDRcalibrate' objects.
2003 May 22
5
X flag in smbpasswd?
mksmbpasswd.sh does not create accounts with the X flag in the password flags field. Does this X matter, and if so, what does it mean? It's not in the man page. ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical
2003 Oct 01
4
Mounting Windows Shares from Linux
Hi All, I'm sure this has been discussed many times but since I do not have a internet connection, I have to ask this question.. [ow_mh@hmweb Dump]$ sudo mount -t smbfs //129.253.110.160/Dump $HOME/Dump 708: session request to 129.253.110.160 failed (Called name not present) 708: session request to 129 failed (Called name not present) Password: Anonymous login successful 708: tree connect
2003 May 19
2
Logwatch - malformed password entry(uid not number)
Hi All, I've the following in the logs and am wondering why they are there. I also keep getting emails from SAMBA log-deamon (or something like that). [2003/05/19 15:24:29, 0] passdb/pdb_smbpasswd.c:getsmbfilepwent(364) getsmbfilepwent: malformed password entry (uid not number) It's not really serious (at least to me) but it's a cause for concern. Below are the details LInux
2003 Aug 12
3
Can't find samba server after new NIC installed
Hi All, Perhaps you guys can help me shed some light on this 'problem' I'm facing. I recently added another NIC to my samba server. eth0(10.0.0.251) and eth1(valid dhcp address) ETH0 was added to connect to another PC that acts as the backup server. (dedicated connection) Now, Samba won't come back up.. I can still ssh into the server and all. Any ideas? I know that the wins
2011 May 25
1
L-BFGS-B and parscale in optim()
Hi, When using method L-BFGS-B along with a parscale argument, should the lower and upper bounds provided be on the scaled or unscaled values? Thanks. Cheers, -- Seb
2003 Aug 04
4
Recommendations for 'X' Network Neighborhood Browser
Hi All, Any recommendation for a Network Browser for KDE/GNOME/WindowMaker?? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168