Displaying 4 results from an estimated 4 matches for "hashead".
Did you mean:
hashed
2009 Jul 17
1
Help with R.oo
...032"
> SavingsAccount("fruit")
[1] "SavingsAccount: 0x605387128"
The second time, the input should fail, balance is not numeric.
------------------------------
A second attempt, with my own code:
setConstructorS3("StreamingFileReader", function(fileName,
hasHeader=T, sep="\t") {
if (missing (fileName)) throw ("Must supply a file name!");
if (missing(hasHeader)) hasHeader <-T;
if (missing(sep)) sep="\t";
extend(Object(), "StreamingFileReader",
.fileName=fileName,
.hasHeader=hasHeader,
.sep=sep);
})
>...
2012 Dec 31
4
error when using subset (0 observations)
...bles
> INFO<- subset(INFO,site.no==02169570)
INFO is 0 observations of 14 variables
When the site.no is used I should have 1 observation of 14 variables
instead of 0. Can you assist me?
Thank-you.
Irucka Embry
This is the function that is called:
getMetaDataFromFile <- function(file, hasHeader = TRUE, separator = ",")
{
totalPath <- paste(file, sep = "")
tmp <- read.csv(totalPath, header = hasHeader, sep = separator, fill =
TRUE, comment.char = "#", as.is = TRUE, stringsAsFactors = FALSE,
na.strings = "NA")
retval <- as.data.frame(tmp, s...
2013 Jan 15
2
error in for loop in function (object not found)
...ining 68 station IDs. The file referenced at the beginning of
the function is the file containing the StationIDs.
> file =
"/home/ie/IE2/Documents/USGS-2012-Work/SPARROW-Summer-2012-Work/EGRET/ca
libration/example_setofstationsassociatedtosamegage.csv"
> xynowget <- xygetN(file, hasHeader = TRUE, separator =",")
Error in is.data.frame(x) : object 'Sample' not found
Can you assist me in fixing the attached function file?
Thank-you.
Irucka Embry
<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="...
2013 Jan 09
4
select partial name and full name columns
Hi, I have the following function:
getDataFromDVFileCustom <- function (file, hasHeader = TRUE, separator =
"\t")
{
DVdatatmp <- as.matrix(read.table(file, sep = "\t", fill = TRUE,
comment.char = "#", as.is = TRUE, stringsAsFactors = FALSE, na.strings =
"NA"))
DVdatatmper <- as.matrix(DVdatatmp[ , c("datetime",
grep("^_00...