Displaying 4 results from an estimated 4 matches for "fekete_198601".
2009 Mar 27
2
Assignment to variables fails to loop
...=i, header=FALSE, sep=" "))
update <- substr(i,35,55) # substring - 2nd argument is character at which extraction is to begin, 3rd argument is where extraction ends.
print(c("LOADED FILE:",update), quote=FALSE)
}
> ls()
[1] "Fekete_198601" "filelist" "i" "index"
[5] "update"
Why is it that only Fekete_198601 has had data assigned to it (there should be 120 such objects in total) and how do I go about solving this?
Many thanks again for any help offered,
Ste...
2009 Mar 31
1
Reshape: 'melt' numerous objects
...of files (with variable file names) - therefore I have to also use the 'assign' command. I have come up against a couple of problems however and am therefore seeking advice...
> assign(paste("Fekete_table_temp", index$year[i], index$month[i], sep='')$Latitude,rownames(Fekete_198601)) # Using the row names of a given file
Error in paste("Fekete_table_temp", index$year[i], index$month[i], sep = "")$Latitude :
$ operator is invalid for atomic vectors
To get round this, I did:
assign(paste("Fekete_table_temp", index$year[i], index$month[i], s...
2009 Mar 31
0
Row/columns names within 'assign' command
...s()[1:120], quote=FALSE) # This is the best way I could manage to successfully attribute all the table names to a single list - I realise it's horrible coding (especially as it relies on the first 120 objects stored in the memory actually being the objects I want to use)...
files
[1] "Fekete_198601" "Fekete_198602" "Fekete_198603" "Fekete_198604"
[5] "Fekete_198605" "Fekete_198606" "Fekete_198607" "Fekete_198608"
[9] "Fekete_198609" "Fekete_198610" "Fekete_198611" "Fekete_198612&q...
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...ls()[1:120], quote=FALSE) # This is the best way I could manage to successfully attribute all the table names to a single list - I realise it's horrible coding (especially as it relies on the first 120 objects stored in the memory actually being the objects I want to use)...
files
[1] "Fekete_198601" "Fekete_198602" "Fekete_198603" "Fekete_198604"
[5] "Fekete_198605" "Fekete_198606" "Fekete_198607" "Fekete_198608"
[9] "Fekete_198609" "Fekete_198610" "Fekete_198611" "Fekete_198612&q...