similar to: SAS Macro Variable in R

Displaying 20 results from an estimated 200 matches similar to: "SAS Macro Variable in R"

2004 Jul 02
1
priceIts problem
Dear R People: In library(its), there is a command priceIts. There is a problem with this command. It is returning an error message: > ibm1 <- priceIts(instrument="ibm",start="1998-01-01",quote="Open") Error in download.file(url, destfile, method = method, quiet = quiet) : cannot open URL
2010 Apr 16
2
read.table behavior for Dates.
When read.table imports a table that includes a header called 'Date', it tries to recognize the date format. For example, if one imports this data from Yahoo finance, the Date column is automatically transformed to Y-m-d, whereis in the data it appears as m/d/Y: myData <-
2009 Sep 21
3
Basic function output/scope question
Hello Group, I'm trying to learn R and am having a problem getting output from a function I'm trying to write. The problem is clearly one of scope, but I can't find the documentation that tells me how to get around the issue. Here is an example of my problem. testfunc<-function(x) { y<-10 print(y) print(x) } testfunc(4) The variables x and y are accessible during execution
2010 Apr 12
2
SAS like Macro variable substituion?
I'd like to use a string to refer to an R object with the end objective of going through a loop and saving various files of the same name with different contents using a numbered suffix. # This will be the loop counter and file suffix. master.i <- 1 # This is the generic file name. unislopes <- c(1,2,3) # This assigns the data to the correct file name "unislopes1".
2007 Sep 01
1
Problem in downloading Yahoo Finance data from R
Hi R users, I have a problem in downloading Yahoo Finance data from R. I have tried an example given in R, to download. The error is given below: >library(fCalendar) > yahooImport("s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000&z=IBM&x=.csv ", file = "D:\\ Downlaod",source = "http://ichart.yahoo.com/table.csv?", save = FALSE,
2009 Oct 28
3
Lost all script
Hi all, I just had a rather unpleasant experience. After considerable work I finally got a script working and set it to run. It had some memory allocation problems when I came back so I used Windows to stop it. During that process it told me that the script had been changed and asked if I wanted to save it. Not being positive that I'd saved the very last changes I said yes. Now when I
2011 Nov 10
3
Error in matrix, not ordered vectors or numerical value, and SIAR.
Help! model1 <- siarmcmcdirichletv4(data, source, tef, concdep=0, 500000, 50000) Error in matrix(1, ncol = (numsources + numiso) * numgroups, nrow = (siardata$iterations - : invalid 'ncol' value (too large or NA) In addition: Warning message: In Ops.ordered((numsources + numiso), numgroups) : '*' is not meaningful for ordered factors Previous message, but more problems:
2011 Nov 10
4
Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 4L, : max not meaningful for factors
Hello, Beginner, sorry if this is wasting anyone's time, but have been working on this for a couple of days now, think it should have take a few hours! The Problem: Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 4L, : max not meaningful for factors I have tried to re-arrange and check formula. I am working in SIAR, and cannot get model1 to run because of the error
2017 Nov 04
3
Question - TukeyHSD
Hi, I've been performing some TukeyHSD tests in R and have come across papers that include all the necessary information (means, sample size and SE) for me to perform the piecewise comparison by hand. I can reach out to the authors to get the original dataset, but it raises the question, can I perform the Test with the information I have and save myself some time? Is there a way to somehow
2010 Jan 13
1
Dynamic file / url name with read.csv
Hi- I would like to be able to change the value of SymA below and download a file from the corresponding URL.? Hardcoded, this line works fine: Symbol<- read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY&ignore=.csv", stringsAsFactors=F) However, when I incorporate using?a variable for the ticker, it no longer works.? SymA<- "SPY" Sym1<-
2013 Oct 31
0
SIAR problem with model running
Hi there, I am trying to run an MCMC on stable isotope data from certain organisms to determine their dietary habits in the package SIAR. I have prepared my data according to Inger, R., Jackson, A., Parnell, A., Bearhop, S. : SIAR V4 (Stable Isotope Analysis in R) an Ecologist's Guide (also better known as 'SIAR for dummies'), which is as follows: - consumer data table (columns
2012 Nov 14
0
SIAR: problem> session aborted
I'm absolutely not brilliant with R yet and working with package SIAR. 1) SIAR reads the first column of a table.txt as "int" instead of "num". Who can help? 2) I therefore made tables with a data.frame() > that seems to work. But at the end of the loading proces of the SIARmodel, I get a warning screen with "Session Aborted". Everything crashes and I can start
2011 Nov 10
1
Errors in SIAR
Help! model1 <- siarmcmcdirichletv4(data, source, tef, concdep=0, 500000, 50000) Error in matrix(1, ncol = (numsources + numiso) * numgroups, nrow = (siardata$iterations - : invalid 'ncol' value (too large or NA) In addition: Warning message: In Ops.ordered((numsources + numiso), numgroups) : '*' is not meaningful for ordered factors Previous message, but more
2008 Oct 07
1
Answer to current issues and debugging' - Why does my transfer die with something like the following error?
Hello, In regards to one of the 'current issues and debugging' - Why does my transfer die with something like the following error? I found that this error occurs also if the path log file = /xyz/abc/rsyncd.log in your rsyncd.conf points to a folder that doesn't exist. Hope this helps! Michael -------------- next part -------------- HTML attachment scrubbed and removed
2012 Dec 18
1
windows 8 jointo samba 3 domain
Hi ... I have problem join win 8 pro to samba domain after patch registry join to domain name XXXXXX work OK bud join domain XXXX.YYY don't work windows send only DNS request to SRV record any Idea? -- Alexandr Seidl V?voj IT RESAL spol. s r. o. ?len s?t? Orange& Green Orange& Green ?st? nad Orlic? M.R. ?tef?nika 264, 562 01 ?st? nad Orlic? ------------------------------ IBM
2009 Oct 14
2
puzzle using gsub (and encodings maybe)
Hello, Below is some output that shows my issue. I have a variable x that I read from a file (more on this below) > x [1] "NEW YORK NEW ENGLAND" > gsub(" -", "-", x) # this does not work! [1] "NEW YORK NEW ENGLAND" > Encoding(x) # is x in a special encoding? no [1] "unknown" > y = "NEW YORK -NEW
2010 Mar 18
1
Using a function to consolidate variables
Dear List, I'm getting the error: object of type 'closure' is not subsettable And am not sure how to get around the problem. I've included two short code sets below. One that shows what I want to do and works, but without using the function much, and another that tries to use the function but causes the error. # THIS WORKS AND SHOWS WHAT I'D LIKE TO DO a <- c(1,2,3) b
2004 Jan 05
1
slow and max connection errors
Sorry about not being specific enough. I will try and be more so in the future. Here is what I have currently: Apple X-serve running Yellowdog (a Redhat 9 port for ppc) with 1GB of RAM, 3 60GB HD not setup as RAID. They are individual partitions (/var and /, /home and /shared). The shared partition is strictly for Samba file sharing. I build in a matching user in both the system and in
2009 Oct 15
1
Removing Embedded Null characters from text/html
Hi, I'm trying to download some data from the web and am running into problems with 'embedded null' characters. These seem to indicate to R that it should stop processing the page so I'd like to remove them. I've been looking around and can't seem to identify exactly what the character is and consequently how to remove it. # THE CODE WORKS ON THIS PAGE library(RCurl)
2008 Jan 22
2
Help - linear regression
Hi, I am trying a linear regression model where the dependent variable is the size of the heart corrected for the patient's height and weight. This is labelled as LAVI. The independent variables are race (european or non-eurpoean), age, sex (male or female) of the patient and whether they have diabetes and high blood pressure. sample size 2000 patients selected from a community. when I