Re: [R] OT --- grammar.

2018-06-25 Thread John McKown
code. > > > -- > Dr. Michael Sumner > Software and Database Engineer > Australian Antarctic Division > 203 Channel Highway > Kingston Tasmania 7050 Australia > > [[alternative HTML version deleted]] > > __

Re: [R] Difference between R for the Mac and for Windows

2017-03-31 Thread John McKown
work differently, since they are all on Intel machines nowadays. Or the R was customized to detect division by zero in software and not really do any floating point processing at all. ​ > > Berend Hasselman > > -- "Irrigation of the land with seawater desalinated by fusion power is

Re: [R] Creating/Reading a complex string in R

2017-07-18 Thread John McKown
Try: String = '

Re: [R] Creating/Reading a complex string in R

2017-07-18 Thread John McKown
updated string to another file. Which contents you could then cut'n'paste into your original R file. something like: #!/usr/bin/Rscript # files <- commandArgs(trailingOnly=TRUE); # for (infile in files) { x=readLines(infile); y=gsub("'","'",

Re: [R] read.fortran format

2016-05-27 Thread John McKown
list with a character vector for each line. ​ ​I think (not sure) you need: mydata<-read.frotran("G:/Journals/Disk1/12_restat_95/estimate/GROUPD.DAT", list(c("1X","F6.0","5F8.6"),c("1X","5F8.4","F10.6"),c("1

Re: [R] Whether statistical background is must to learn R language

2016-05-31 Thread John McKown
. > > Please guide. > > Thanks in Advance > Prasad > > -- The unfacts, did we have them, are too imprecisely few to warrant our certitude. Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-h

Re: [R] How to import sensitive data when multiple users collaborate on R-script?

2016-05-31 Thread John McKown
think this would be something like: filename <- Sys.getenv("FILENAME") if (filename = "") { ... no file name in environment, what to do? } You could have someone do this for the user, if he is not familiar with ​ the process. ​ -- The unfacts, did we have them, are t

Re: [R] Build command in library(devtools)

2016-07-19 Thread John McKown
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible

Re: [R] Off topic, but hopefully not totally irrelevant: on MS Excel and genomics

2016-09-02 Thread John McKown
have a small collection of spreadsheet errors that have > been published here and there and this is a great addition. > > John Kane > Kingston ON Canada > -- Unix: Some say the learning curve is steep, but you only have to climb it once. -- Karl Lehenbauer Unicode: http://xkcd

Re: [R] R Mysql Not reading all table names

2016-10-03 Thread John McKown
, > MUMA College of Business, > USF > Phone- (813) 5809131 > Web: http://vivek4.myweb.usf.edu/ > > -- Heisenberg may have been here. Unicode: http://xkcd.com/1726/ Maranatha! <>< John McKown [[alternative HTML version deleted]] __

Re: [R] RODBC did not found

2015-04-20 Thread John McKown
eful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/

Re: [R] regexpr - ignore all special characters and punctuation in a string

2015-04-20 Thread John McKown
tr2) [1] TRUE > The gsub() removes all characters which are not alphabetic from each string and then compares them.​ -- If you sent twitter messages while exploring, are you on a textpedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maran

Re: [R] Need online version of R help pages

2015-04-20 Thread John McKown
pedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

Re: [R] problem setting default timezone

2015-04-23 Thread John McKown
time after midnight in the representation of the time in specified time zone, default UTC.) Also objects of class ‘"date"’ (from package ‘date’) and ‘"dates"’ (from package ‘chron’). Character strings are processed as far as necessary for the format specified:

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread John McKown
On Wed, May 20, 2015 at 5:13 AM, Gabriel WEINDEL wrote: > Dear all, > > For my master thesis, I'm currently working in cognitive neuroscience on > executive control through measurement of reaction time and I need to get my > data 'vincentized' with an exclusive use of R set by my statistic teache

Re: [R] How to pass a variable to a function which use variable name as a parameter

2015-05-26 Thread John McKown
4)​ options(datadist=NULL) -- My sister opened a computer store in Hawaii. She sells C shells down by the seashore. If someone tell you that nothing is impossible: Ask him to dribble a football. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Ma

Re: [R] Passing strings with spaces to Python using system2 splits string at whitespace

2015-06-04 Thread John McKown
de commented, minimal, self-contained, reproducible code. > -- My sister opened a computer store in Hawaii. She sells C shells down by the seashore. If someone tell you that nothing is impossible: Ask him to dribble a football. He's about as useful as a wax frying pan. 10 to the 12th po

Re: [R] how to reach a txt file like this?

2015-06-09 Thread John McKown
kely be ignored. ​ -- Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. My sister opened a computer store in Hawaii. She sells C shells down by the seashore. If someone tell you that nothing is impossible: Ask him to dribble a football. He's ab

Re: [R] help for lay person assisting R user with disability

2015-06-18 Thread John McKown
o use Excel for "data entry". -- Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. My sister opened a computer store in Hawaii. She sells C shells down by the seashore. If someone tell you that nothing is impossible: Ask him to dribble a football. He's ab

Re: [R] Invalid URL for R documentation

2015-07-06 Thread John McKown
to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] Common install of R on network disk

2015-07-07 Thread John McKown
87 12 (TAGC) / +33(0)4 91 26 91 90 (CIML) > > Site : http://www.univ-amu.fr<http://www.univ-amu.fr/> - Email : > lionel.spine...@univ-amu.fr<mailto:lionel.spine...@univ-amu.fr> > > -- Schrodinger's backup: The condition of any backup is unknown until a rest

Re: [R] Can't post to the list

2015-07-09 Thread John McKown
your mail special styles or > > formatting (e.g. bold typeface, colors etc.). > > > > ... > > > > > > > > > > > Thanks for your concern, > Maram > > Sent from my iPhone > > -- Schrodinger's

Re: [R] open connection to system

2015-07-14 Thread John McKown
the socketConnection() function in some way. ​ -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax

Re: [R] matching strings in a list

2015-07-16 Thread John McKown
Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __

Re: [R] matching strings in a list

2015-07-16 Thread John McKown
On Thu, Jul 16, 2015 at 1:00 PM, John McKown wrote: > On Thu, Jul 16, 2015 at 12:40 PM, tryingtolearn > wrote: > >> Say I have a list: >> [[1]] "I like google" >> [[2]] "Hi Google google" >> [[3]] "what's up" >> >

Re: [R] Read ".xlsx" and convert date-column value into Dataframe

2015-07-22 Thread John McKown
Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>&

Re: [R] setwd() command on windows vs. linux/unix

2015-07-27 Thread John McKown
wn until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __

Re: [R] Course: Introduction to zero inflated models

2015-08-04 Thread John McKown
condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown

Re: [R] Problem with path.expand("~")

2015-08-11 Thread John McKown
> > [1] stats graphics grDevices utils datasets methods base > > > > loaded via a namespace (and not attached): > > [1] tools_3.2.1fortunes_1.5-2 > > > > > > Best regards, > > > -- > Sarah Goslee > http://www.functionaldiversity.o

Re: [R] if else for cumulative sum error

2014-12-02 Thread John McKown
R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- The temperature of the aqueous content of an unremittingly ogled culinary vessel will not achieve 100 degrees on the Celsius scale. Maranatha! <>< John McKown [[alterna

Re: [R] create matrices with constraint

2014-12-12 Thread John McKown
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ​ While a tran

Re: [R] create matrices with constraint

2014-12-13 Thread John McKown
On Fri, Dec 12, 2014 at 1:45 PM, John McKown wrote: > ​ > ​​ > Hum. Consider the set of all possible unique 4 value vectors in which the > values in the vectors are taken, without replacement, from the numbers 1 > through 28. This is a mathematical concept called "combinat

Re: [R] create matrices with constraint

2014-12-14 Thread John McKown
that I've never heard of before. I'm really poor at statistics. -- The temperature of the aqueous content of an unremittingly ogled culinary vessel will not achieve 100 degrees on the Celsius scale. Maranatha! <>< John McKown [[alternative HTML version deleted]] _

Re: [R] create matrices with constraint

2014-12-15 Thread John McKown
laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. In other words, eschew obfuscation. Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-h

Re: [R] create matrices with constraint

2014-12-15 Thread John McKown
> David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -- ​ While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. I

[R] Your pardon: An article possibly of interest to statisticians

2014-12-18 Thread John McKown
While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. In other words, eschew obfuscation. 111,111,111 x 111,111,111 = 12,345,678,987,654,321 Maranatha! <>< John McKown [[alt

Re: [R] Matrix element-by-element multiplication

2015-01-07 Thread John McKown
00 1400 24 [5,] 500 1500 25 [6,] 600 1600 26 [7,] 700 1700 27 [8,] 800 1800 28 [9,] 900 1900 29 [10,] 1000 2000 30 > ​ -- ​ While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become enscon

Re: [R] regular expression question

2015-01-12 Thread John McKown
__ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >

Re: [R] ""error 1 in extracting from zip file"

2015-01-14 Thread John McKown
​ -- ​ While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. In other words, eschew obfuscation. 111,111,111 x 111,111,111 = 12,345,678,987,654,321 Maranatha! <>< John McKown

Re: [R] regular expression question

2015-01-14 Thread John McKown
omplicated. Although I have a liking for them due to their expressiveness and power, it is like an person using raw nitroglycerin instead of dynamite. Dangerous. > > -Don > > -- > Don MacQueen > > Lawrence Livermore National Laboratory > -- ​ While a transcendent vocab

Re: [R] Fixed Width EBCDIC Files in R

2015-02-05 Thread John McKown
e, n = thisblock) : line 1 appears to contain an embedded nul 2: In readLines(file, n = thisblock) : incomplete final line found on 'EBCDIC_ZIPCODE' > View(data) I don't know how to get past the embedded NULL. I'm a UNIX user, so my thought (not applicable

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John McKown
nate my interactive statements with a semi-colon all the time. Just most of the time. Of course, I'm a touch typist too and so it is not really much of a problem for me.​ -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>

Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread John McKown
I guess my C background has messed me up a bit for R. Well, recovering from APL was worse. I lost all sense of hierarchy of operations. On Feb 15, 2015 2:19 PM, "Duncan Murdoch" wrote: > On 15/02/2015 11:20 AM, John McKown wrote: > > On Sun, Feb 15, 2015 at 9:54

Re: [R] extract file name from a path string

2015-02-26 Thread John McKown
i > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, sel

Re: [R] Reading in an XLS (really XML) file from website

2015-02-27 Thread John McKown
it the file using Notepad, or Wordpad. I would use Wordpad myself. Notepad is "iffy" on some things. Save it back, then try readWorksheetFromFile() as you originally did. -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! &l

Re: [R] vectorize data string analysis

2015-03-03 Thread John McKown
.000 CL7440600031403GND0 LB748388 > 0952312900OCT0309512089400.9988407604.525090103080133358DLJ MORTGAGE > CAPITAL INC. ELEVEN MADISON AVENUE NEW YORK > NY10010058430FNAR XX.XXX LB7483880031403GNG3 LB748391 > 0715661500O

Re: [R] regex find anything which is not a number

2015-03-11 Thread John McKown
Data Archive > Soseaua Panduri nr.90 > 050663 Bucharest sector 5 > Romania > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide h

Re: [R] regex find anything which is not a number

2015-03-12 Thread John McKown
ple grep() specifically excludes this by requiring at least one digit after any decimal point. -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown __ R-help@r-project.or

Re: [R] Help with Programmin-1 submission.

2015-03-14 Thread John McKown
t; > >> > > > > Any suggestions as to where to go? It appears to be unable to find my > pollutantmean.R file even though I just sourced it. The function is in > memory and is in the directory from which I am trying to execute the submit > script. > > > &

Re: [R] the making of _R_ eBooks

2015-03-23 Thread John McKown
er > Leichlingen, Germany -- If you sent twitter messages while exploring, are you on a textpedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown __ R-help

Re: [R] reading in from xlsx files

2015-03-24 Thread John McKown
as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide h

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread John McKown
; [12] "C:/Program Files/R/R-3.1.1/library/proto" > Pardon the weird subscript, but the list was way to big to cut, paste, and edit. So your users should be able to force any package, even a "system" package, into their personal R directory using the "lib=" parameter o

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread John McKown
ges while exploring, are you on a textpedition? He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-help@r-project.org m

[R] Trying to change a qplot() to a ggplot()+

2014-07-23 Thread John McKown
KBOOK" as my source of examples. I am obviously oblivious to something. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://sta

Re: [R] Trying to change a qplot() to a ggplot()+

2014-07-23 Thread John McKown
I got an off-line reply which fixed my problem. And, it is a good thing my cataract surgery is soon, no? turns out that qqplot and ggplot are not the same! . But the font in notepad on Windows is such that I have difficulty in telling the difference. On Wed, Jul 23, 2014 at 8:47 AM, John McKown

Re: [R] XLConnect on Linux Mint Maya

2014-07-24 Thread John McKown
ing problems at work and I know that the "big boss" will blame us peons if the hardware isn't fixed promptly Despite the fact that we are only software people and aren't allowed to touch the hardware. Our management's minds are not using the same logic as mine does. F

[R] Problem using ggplot2 with the legend of a stacked bar chart

2014-07-25 Thread John McKown
Graphics Cookbook" and just can't figure out a way to get what I want. Now, using Rstudio, I examined what is in MSU_graph_m1. And saw a variable called "labels". This is a list containing more variables. Once of which is called "colour". That variable has the value of &qu

Re: [R] Problem using ggplot2 with the legend of a stacked bar chart

2014-07-25 Thread John McKown
Never mind. I had to specify the label in the "labs=()" portion of the ggplot(). Why, if I'm going to "get it", do I "get it" only _after_ I post? On Fri, Jul 25, 2014 at 8:07 AM, John McKown wrote: > I am creating two graphs using ggplot2. The graphs ar

Re: [R] R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

2014-07-26 Thread John McKown
instead of "libmy.so". > > How can I load my dynamic library ? > > Thanks > Pierre Again, I'm no expert. I'm not even a Linux professional. I work on an old-style "mainframe" (z/OS from IBM - aka "big iron"). So please excuse me if I am lea

Re: [R] R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

2014-07-26 Thread John McKown
ld a debug DLL Report bugs at b...@r-project.org . On Sat, Jul 26, 2014 at 9:37 AM, John McKown wrote: > On Fri, Jul 25, 2014 at 9:07 AM, Pierre Lindenbaum > wrote: >> ( cross-posted on SO: http://stackoverflow.com/questions/24955829/ ) >> >> I'm building a C exte

[R] is.na() == TRUE for POSIXlt time / date of "2014-03-09 02:00:00"

2014-07-30 Thread John McKown
ot;), class = c("POSIXlt", "POSIXt")) > str(q) POSIXlt[1:1], format: "2014-03-09 02:00:00" > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown ___

Re: [R] is.na() == TRUE for POSIXlt time / date of "2014-03-09 02:00:00"

2014-07-30 Thread John McKown
On Wed, Jul 30, 2014 at 12:18 PM, Duncan Murdoch wrote: > On 30/07/2014 1:08 PM, John McKown wrote: >> >> "I'm so confused!" Why does is.na() report TRUE for a POSIXlt date & >> time of 2014-03-09 02:00:00 ? >> >> > q >> [1] "2014-

Re: [R] is.na() == TRUE for POSIXlt time / date of "2014-03-09 02:00:00"

2014-07-30 Thread John McKown
; > Bill Dunlap > TIBCO Software > wdunlap tibco.com -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

Re: [R] is.na() == TRUE for POSIXlt time / date of "2014-03-09 02:00:00"

2014-07-30 Thread John McKown
(digit) field of the form HHMM. Why, I don't know. But I have a work around which satisfies me and lets me get something for the boss. On Wed, Jul 30, 2014 at 1:07 PM, John McKown wrote: > On Wed, Jul 30, 2014 at 12:54 PM, William Dunlap wrote: >>> I should have mentioned that I

Re: [R] is.na() == TRUE for POSIXlt time / date of "2014-03-09 02:00:00"

2014-07-30 Thread John McKown
r string. Start_Int_Time formatted in hh:mm:ss as a character string. In any case, you have accurately explained my foolishness. I keep forgetting about DST because I record _everything_ in my personal DBs in UTC. On Wed, Jul 30, 2014 at 1:23 PM, William Dunlap wrote: > I meant what R commands did

[R] Need(?) way to create a "picture" (or "plot") of a data.frame

2014-07-31 Thread John McKown
will do such a weird thing? -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

Re: [R] Need(?) way to create a "picture" (or "plot") of a data.frame

2014-07-31 Thread John McKown
either of those two packages. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] How to avoid the three loops in R?

2014-08-01 Thread John McKown
ossible alternate to handle above consideration x$Avg_other <- ifelse(x$NoPrice>1,(x$sumPrice-x$Price)/(x$NoPrice-1),NA); > > Please avoid the three for loop, I have tried and it never end. I have > 1070427 rows. Is there better way to speed up my program? -- There is nothing mo

Re: [R] mutually exclusive events

2014-08-02 Thread John McKown
quot;temp" column which encodes tehm simply by considering them to be binary digits in a number. I.e. tempColumn = 1 * column1 + 2 * column2 + 4*column3 + 8*column4. You can the "group" the data by this value. All rows with the same value are in the same "group". But I don

Re: [R] mutually exclusive events

2014-08-02 Thread John McKown
p" the data by this value. All rows with the same value are in the same "group". But I don't know what you want your output to look like. As an aside any value other than 0, 1, 2,4, or 8 could be considered invalid because it means that more than one colu

Re: [R] Convert some columns of List to dataframe R

2014-08-03 Thread John McKown
ar", "Site", "x"), row.names = c(NA, + -1L), class = "data.frame")) > library(dplyr); > rbind_all(lst3); Year Sitex 1 2001 G101 33.1 2 2001 G102 34.0 Warning message: In rbind_all(lst3) : Unequal factor levels: coercing to character > dcast(outpu

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread John McKown
bag of tricks" as I can find. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread John McKown
rge() florian <- merge(x=florian,y=y,by=c("NAME"),all.x=TRUE); florian$ID <- florian$IDy; #copy merged values to ID column florian$IDy <- NULL; # remove temporary column rm(y); # erase temporary frame. -- There is nothing more pleasant than traveling and meeting new people! Gengh

Re: [R] Compare data in two rows and replace objects in data frame

2014-08-04 Thread John McKown
even data #data_odd[,1] <- NULL; # And also from odd data # # Initialize new_data - make everything NA so # it will stick out later! new_data <- data_even; new_data[,colnames(data_even)] <- NA; # new_data[data_odd == 1 & data_odd ==1] <- 'HT'; new_data[data_odd == 1 &

Re: [R] "Best" way to merge 300+ .5MB dataframes?

2014-08-10 Thread John McKown
gt; something else because it is /faster/ (by some definition)? > > Kind regards, > > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing

[R] Just stumbled across this: Advanced R programming text & code - from Hadley

2014-08-10 Thread John McKown
ite too. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

Re: [R] Problem with assignment 1 part 1

2014-08-10 Thread John McKown
What code. Also, the forum has a "no homework" policy. Your subject implies this is homework, so you might not get any answers. You might get a hint or two though. On Aug 10, 2014 10:00 PM, "michelle maurin" wrote: > I think my code is very close I can seem to be able to debug it Might be > some

Re: [R] Problem with assignment 1 part 1

2014-08-11 Thread John McKown
my code is very close I can seem to be able to debug it Might be > something very simple I know the problem is on the last 3 lines of code can > you please help? > Thanks > Michelle > ______ > R-help@r-project.org mailing list > https://sta

Re: [R] "Best" way to merge 300+ .5MB dataframes?

2014-08-11 Thread John McKown
ed. It is the z/OS system from IBM which is EBCDIC based and runs on the "big iron" mainframe, system z. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-hel

Re: [R] pass vector binding to DBI parameter (rsqlite)

2014-08-12 Thread John McKown
p('?',length(values)),collapse=','), ")"), values); As you can see, this dynamically adjusts the number of ? marks in the SELECT statement, based on the number of elements in the "values" variable. -- There

Re: [R] generating a sequence of seconds

2014-08-12 Thread John McKown
ntf("%02d:%02d:%02d", # C-style formatting string seconds_vector/3600, # hour value (seconds_vector%%3600)/60, #minute value seconds_vector%%60); #second value

Re: [R] generating a sequence of seconds

2014-08-12 Thread John McKown
On Tue, Aug 12, 2014 at 2:40 PM, John McKown wrote: > You can simply make that a function > > getTimePortion <- function(POSIXct_value) { > value_in_seconds=as.integer(POSIXct_value); > sprintf("%02d:%02d:%02d&q

Re: [R] generating a sequence of seconds

2014-08-12 Thread John McKown
roject.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-p

Re: [R] generating a sequence of seconds

2014-08-12 Thread John McKown
ot;it is 13:59:30 zulu". In my time zone, today, that is 08:59:30 a.m. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown [[alternative HTML version deleted]] __ R-help@r

Re: [R] generating a sequence of seconds

2014-08-12 Thread John McKown
UTC is appropropriate. > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown [[alternative HTML version deleted]]

Re: [R] pass vector binding to DBI parameter (rsqlite)

2014-08-12 Thread John McKown
r might say: "we considered that, but decided to reject it due to the difficulty of implementation and lack of need in the vast majority of cases". -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <

Re: [R] populating matrix with binary variable after matching data from data frame

2014-08-13 Thread John McKown
i]] <- 1; } > > Thanks > Adrian > > [[alternative HTML version deleted]] > > Please post in plain text, per the mailing list "rules". -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McK

[R] opinion - sharing problem data and other stuff.

2014-08-13 Thread John McKown
data, but only to those who are interested. Thanks for any feedback. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.

[R] Fwd: opinion - sharing problem data and other stuff.

2014-08-16 Thread John McKown
ases where the whole big dataset is necessary. Further, > >the exercise of creating a small reproducible example is often enough > >to solve the problem, without ever needed to bother R-help at all. > > > >Granted, I'm also likely to skip posts to the list with eno

Re: [R] data.table/ifelse conditional new variable question

2014-08-16 Thread John McKown
.ID), or more like an "intermixed" family due to divorce and remarriage. Or even, like in some countries, a case of polygamy? Sorry, I just get curious about the strangest things sometimes. -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha!

Re: [R] How can I let the dimension change via the circulation?

2014-08-23 Thread John McKown
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Ther

Re: [R] How can I let the dimension change via the circulation?

2014-08-24 Thread John McKown
llowing > three regression : sample 1-42,2-42,3-42. > > > ------ 原始邮件 -- > *发件人:* "John McKown";; > *发送时间:* 2014年8月24日(星期天) 上午9:18 > *收件人:* "西风古道"; > *抄送:* "r-help"; > *主题:* Re: [R] How can I let the dimension cha

Re: [R] converting dataframe into multiple time series

2014-08-24 Thread John McKown
On Aug 23, 2014 7:54 PM, "Bill" wrote: > > Hello. Can someone suggest how to do this: > > for (i in 2:length(colnames(allvar.df))) { > var=colnames(allvar.df)[i] > timeSeriesName = paste(var,".time.series") > varRef=paste(var,".df$",var) > varDate=paste(var,".df$date") > timeSeriesName <- ts(varRe

Re: [R] What the difference between .Golbalenv and package:base?

2014-08-25 Thread John McKown
refer (such as in a function) assign("new_name",new.env(),envir=.GlobalEnv); # # You may now assign variable into this similar to: new_name$a <- 2; gvar <- new_name$a; # get the variable a from environment new_name gvar <- get("a",envir=new_name); #same thing, but w

Re: [R] What the difference between .Golbalenv and package:base?

2014-08-25 Thread John McKown
ot;aggregate.data.frame" "aggregate.ts" "AIC" [10] "alias""anova""ansari.test" ... [436] "variable.names" "varimax" "vcov" [439] "weighted.mean"&quo

Re: [R] What the difference between .Golbalenv and package:base?

2014-08-25 Thread John McKown
On Mon, Aug 25, 2014 at 12:26 PM, John McKown wrote: > Please be very aware of the following, very confusing fact: > Referencing a variable can not have the expected results. > >> new_name <- new.env() >> attach(new_name) >> search() > [1] ".GlobalEnv"

Re: [R] What the difference between .Golbalenv and package:base?

2014-08-25 Thread John McKown
he name of the environment. > You are now much deeper into the internals of R than my knowledge. Perhaps one of the truly wise ones here knows. Or this may be a better question for the people on r-devel. It is really getting more towards the "why" of R rather than the "how to&

Re: [R] problem when I Call C subfunction in void function

2014-08-27 Thread John McKown
type for argument 1 of ‘essai’ > - Note : expected ‘double*’ but argument is of type ‘double’ ” > > Does anyone have solution ? > Thank all, Elie -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown _

Re: [R] Unexpected behavior when giving a value to a new variable based on the value of another variable

2014-08-29 Thread John McKown
empty nor missing names. If any object has no names or appropriate dimnames, they are taken as all "" and so match nothing. Note the commend about "partial matching" in the middle paragraph in the quote above. -- There is nothing more pl

Re: [R] Building R for better performance

2014-09-02 Thread John McKown
o others because of the GPL. I'm pretty sure that mixing in licensed code with GPL'd code __and distributing the executable__ is not kosher. That would violate section #3 of the GPL. -- There is nothing more pleasant than traveling and meeting new people! Genghis Kha

  1   2   >