Displaying 4 results from an estimated 4 matches for "myfc".
Did you mean:
mfc
2024 Dec 18
2
Query concerning working directory for file.choose()
...te nd1 and nd2 and give them some dummy
files before testing.
Suggestions welcome.
John Nash
# fcdir.R -- show directory being used by function that calls file choose
cpath<-getwd()
nd1<-paste0(cpath,"/nd1")
nd2<-paste0(cpath,"/nd2")
dir.create(nd1)
dir.create(nd2)
myfc<-function(){
cat("myfc working in ",getwd(),"\n")
val<-file.choose()
val
}
myfcd<-function(adir){
setwd(adir)
cat("in myfcd, getwd() =", getwd(),"\n")
val<-file.choose()
val
}
print(getwd())
one<-myfc()
cat("one="...
2024 Dec 18
2
Query concerning working directory for file.choose()
...;
> Suggestions welcome.
>
> John Nash
>
>
> # fcdir.R -- show directory being used by function that calls file choose
> cpath<-getwd()
> nd1<-paste0(cpath,"/nd1")
> nd2<-paste0(cpath,"/nd2")
> dir.create(nd1)
> dir.create(nd2)
>
> myfc<-function(){
> cat("myfc working in ",getwd(),"\n")
> val<-file.choose()
> val
> }
> myfcd<-function(adir){
> setwd(adir)
> cat("in myfcd, getwd() =", getwd(),"\n")
> val<-file.choose()
> val
> }...
2024 Dec 18
2
Query concerning working directory for file.choose()
...t; Suggestions welcome.
>
> John Nash
>
>
> # fcdir.R -- show directory being used by function that calls file choose
> cpath<-getwd()
> nd1<-paste0(cpath,"/nd1")
> nd2<-paste0(cpath,"/nd2")
> dir.create(nd1)
> dir.create(nd2)
>
> myfc<-function(){
> cat("myfc working in ",getwd(),"\n")
> val<-file.choose()
> val
> }
> myfcd<-function(adir){
> setwd(adir)
> cat("in myfcd, getwd() =", getwd(),"\n")
> val<-file.choose()
> val...
2009 Mar 05
1
Problem using RMySQL and fCalendar
...red package: MASS
Loading required package: fUtilities
Rmetrics Package fUtilities (290.76) loaded.
Loading required package: fEcofin
Rmetrics Package fCalendar (270.78.2) loaded.
The new version of 'fCalendar' has been renamed to 'timeDate'
> dt<-"1947-06-13"
> myFC<-"America/NewYork"
> DT<-timeDate(dt, zone=myFC, FinCenter=myFC)
> DT + 3600
America/NewYork
[1] [1947-06-13 01:00:00]
> library(RMySQL, pos=4) # For db access
> DT + 3600
Error in `+.timeDate`(DT, 3600) :
no slot of name "Data" for this object of clas...