search for: m_

Displaying 20 results from an estimated 108 matches for "m_".

Did you mean: mv_
2017 Jan 11
2
bug with strptime, %OS, and "."
...> On 10 January 2017 at 17:48, frederik at ofb.net wrote: > | Hi R Devel, > | > | I just ran into a corner case with 'strptime'. Recall that the "%OS" > | conversion accepts fractional seconds: > | > | > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec > | [1] 14.01234 > | > | Unfortunately for my application it seems to be "greedy", in that it > | tries to parse a decimal point which might belong to the rest of the > | format: > | > | > strptime("17_35_14.mp3","%H_%M_%OS.mp3&qu...
2017 Jan 11
4
bug with strptime, %OS, and "."
Hi R Devel, I just ran into a corner case with 'strptime'. Recall that the "%OS" conversion accepts fractional seconds: > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec [1] 14.01234 Unfortunately for my application it seems to be "greedy", in that it tries to parse a decimal point which might belong to the rest of the format: > strptime("17_35_14.mp3","%H_%M_%OS.mp3") [1] NA If I use "_" instead of &q...
2010 Nov 22
3
Splitting 3D matrix from for loop to generate/save 2D matrices
Hi! I have a matrix called M with dimension (586,100,100). I would like to split and save this into 586 matrices with dimension 100 by 100. I have tried the following for loops but couldn't get it work.. l<-dim(M)[1] for (i in (1:l)){ save(M[i,,],file = "M_[i].img") } Can somebody help me with this? Thanks! Hana Lee [[alternative HTML version deleted]]
2009 Sep 22
3
how to convert character string with only month and year into date
...wonder how to convert character time info into date in R. I searched over the web but did not find answer. the input character string is something like 03_1993 or 03-1993, so the precision is at month level. I tried the following but failed. #R code below. strptime(c("03_1993"),"%m_%Y") strptime(c("03-1993"),"%m-%Y") Can you someone kindly show me to do it? Many thanks in advance! -Sean [[alternative HTML version deleted]]
2014 Oct 13
5
[LLVMdev] RFC: variable names
...served identifier and thus undefined behavior). I have seen this cause inscrutable compilation failures in practice. (With Chandler's approach for initialisms we may still get leading capitals.) Trailing _ is better, but still suffers from bugs where the wrong entity is used: class A { bool m_; A(bool m) : m_(m_) {} // oops, but we diagnose }; Capitalizing member names has the same problems as capitalizing local variable names: struct MyRAIIThing { Sema &Sema; // =( }; -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipe...
2017 Jan 11
0
bug with strptime, %OS, and "."
Works for me: > strptime("17_35_14.01234.mp3","%H_%M_%OS")$sec [1] 14.01234 > strptime("17_35_14.mp3","%H_%M_%OS")$sec [1] 14 Just leave off the ".mp3" in your time pattern. Relevant section from the help ("Details") for strptime: strptime converts character vectors to class "POSIXlt": its in...
2013 Feb 17
0
strptime() with format %OS does not print millisecs in MacOS
Hi! I'm finding this on MacOS Lion 10.7.5 > getOption("digits.secs") NULL > a <- "2012_10_01_14_13_32.445" > strptime(a,format="%Y_%M_%d_%H_%M_%OS") [1] "2012-02-01 14:13:32" > strptime(a,format="%Y_%M_%d_%H_%M_%OS3") [1] NA I can solve it with > options(digits.secs=3) > strptime(a,format="%Y_%M_%d_%H_%M_%OS") [1] "2012-02-01 14:13:32.445" But is this not in contradiction wit...
2019 Feb 22
3
RFC: changing variable naming rules in LLVM codebase
...king data-member names distinct from local variables, some people > > don't see why it should matter, others find it helpful; given this > > neutral-to-helpful spectrum, going with the kind-of helpful convention > > seems preferable. > > There are drawbacks to the "m_" prefix notation, though. It makes it > more work to move entities between class and local scope. It's extra > typing, it's hard to pronounce, etc. IMO these are pretty feeble objections. The "m_" is silent, for example. Moving entities between class and local scope...
2009 Apr 25
2
Extracting an object name?
...UseMethod("predict") : no applicable method for "predict" Is there a way to pass the unknown object name to predict, or do we need to ask the students to redo all the work with a given model name? (I hope not!) function(L) { fname <- format(Sys.time(), 'Totals_%b%d_%H%M_%S.txt') filesused <- format(Sys.time(), 'Files_%b%d_%H%M_%S.txt') setwd("/Users/gregg/R_system") dire <- getwd() print(dire) flies <- list.files(pattern = "BIOtotal*")# flies instead of files because of FEAR of reserved words!!! for(i in 1:length(flies)) { s...
2019 Nov 21
0
WorldCIST'20 - Budva, Montenegro | Deadline: November 24
2016 Jun 09
6
Samba 4.2 - OS X 10.11 - permissions are being ignored
...d under OS X 10.11.5. All files will get these permissions: 0755. I don't know why? Samaba Version 4.2.7-SerNet-RedHat-19.el6 CentOS release 6.7 [global] workgroup = BAVARIA server string = Samba Server %m netbios name = NASBAV1 log file = /var/log/samba/%m_%a_%R.log max log size = 50 log level = 1 security = user encrypt passwords = yes preferred master = no printcap name = /etc/printcap load printers = no [nova1] comment = projects share path = /data/nova1 read only...
2012 Sep 28
3
Simple Question
.../i386 (32-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] chron_2.3-42 twitteR_0.99.19 rjson_0.2.9 RCurl_1.91-1 bitops_1.0-4.1 tm_0.5-7.1 RMySQL_0.9-3 DBI_0.2-5 loaded via a namespace (and not attached): [1] slam_0.1-24 tools_2.15.1 Statement I tried : b <- unclass(Sys.time()) b = 1348812597 c_b <- rnorm(1,2,1) Works perfect but doesn't show me c_1348812597. Best Regards, Bhupendrasinh Thakre...
2006 Oct 16
2
Re : Re : Generate a random bistochastic matrix
Yes, you're right. In fact, it's just an adaptation of a matlab command and the author advises using N^4 replications that's why it's the default in the function. The bistochastic matrix is not my subject of interest, but I need it to perform some random tranformation of a vector of incomes. Florent Bresson ----- Message d'origine ---- De : Richard M. Heiberger <rmh at
2008 Mar 27
1
functions
I wrote some functions for multiway CANDECOMP, i.e. for least squares fitting of a_{i_1\cdots i_m}\approx\sum_{s=1}^p x^1_{i_1s}x^1_{i_1s}\cdots x^m_{i_ms} with arrays of arbitrary dimension. Reminded me of the good old APL days. I could not find this in the archives, but if it's already there, I would appreciate if someone let me know. ========================================================== Jan...
2011 Jul 11
2
How unzip all files?
Hi I'm starting to use R in windows. I need unzip some files. Each of them are in different folders and subfolders. Names of folders have the same beginning of the name. [example:( ~ / M_ /P_ (...)/ (...)R(...)/*.zip)] I do not know the expression (character) necessary to call this direction and to unzip files are in each subfolder. Thank you. -- View this message in context: http://r.789695.n4.nabble.com/How-unzip-all-files-tp3658989p3658989.html Sent from the R help mailing list...
2019 Feb 04
2
Variable names rule
If we're talking about member variables, just put an m in front of it, problem solved. You already have one for s_, and I didn't see you mention it but I assume you'd want g_ for globals, so m_ makes perfect sense for member variables and there's no question about UB at that point. On Mon, Feb 4, 2019 at 1:27 PM JD Jones via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Yeah, I hated it too at first. It grew on me. After about a week or so, > it does make it easy to d...
2002 Jul 29
5
HOWTO Create a PDF Writer in samba
Hi all, Thought I'd post this to the list as I found a better way of doing it. Nice to have for posterity. Please include it in the source of samba if you wish - I hereby license it under GPL 1. install ghostscript (most distributions include it anyway) 2. put the following in the file /usr/sbin/pdfprint and make it executable by whatever your guest user for samba is : #!/bin/bash
2014 Oct 14
2
[LLVMdev] RFC: variable names
...inscrutable >> compilation failures in practice. (With Chandler's approach for initialisms >> we may still get leading capitals.) >> >> Trailing _ is better, but still suffers from bugs where the wrong entity >> is used: >> >> class A { >> bool m_; >> A(bool m) : m_(m_) {} // oops, but we diagnose >> }; >> >> Capitalizing member names has the same problems as capitalizing local >> variable names: >> >> struct MyRAIIThing { >> Sema &Sema; // =( >> }; >> > > In addition...
2006 Oct 16
5
Re : Generate a random bistochastic matrix
Thanks, I tried someting like this, but computation takes times for large matrices btransf <- function(y,X=length(y)^4) { N <- length(y) bm <- matrix(rep(1/N,N^2),N,N) for(j in 1:X){ coord <- sample(1:N,4,replace=T) d <- runif(1,0,min(bm[coord[1],coord[2]],bm[coord[3],coord[4]]))
2003 Jul 10
1
The question is on Symmetry model for square table.
...stop(paste("invalid labels; length", nl, "should be 1 or", length(levels))) class(f) <- c(if (ordered) "ordered", "factor") f } ----------------------------------------------------------------------------- The model and Assumptions log(m_ij)= lambda + lambda_i + lambda_j + lambda_ij where, lambda_ij = lambda_ji for i not equal to j and lambda_i(A) = lambda_i(B) Likelihood equation is m_ij =(n_ij + n_ji)/2 For symmetry m_(ij)=m_(ji) "R program" does not recognised "symm" pathern, that is (1,1), (1,2) and so o...