שאלה בסיסית - שמירת אובייקטים בR

17 views
Skip to first unread message

Amit Oc Amit Oc

unread,
Apr 12, 2013, 6:25:13 AM4/12/13
to israel-r-...@googlegroups.com
היי, 
אני לא משתמש "כבד" בR (רק לצורך התיזה).

יש לי שאלה בסיסית - כיצד שומרים אובייקט בR? 

ראיתי שצריך לעשות
save(obj, file = "fileName") 
אבל R מחזיר לי שגיאה -
Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "wb") :
  cannot open compressed file 'thes.RData', probable reason 'Permission denied'
האם צריך להטעין חבילה כלשהי?
האם צריך להגדיר נתיב לפני ? 

תודה מראש
עמית אוסי

Tal Galili

unread,
Apr 12, 2013, 6:28:32 AM4/12/13
to israel-r-...@googlegroups.com
שלום עמית:
1) אם אתה רוצה לשמור רק אובייקט R יחיד, אפשר להשתמש ב:
saveRDS
readRDS

2) השגיאה שלך קוראת כנראה כשאתה מריץ פונקציה אחרת, מהי הפקודה המדוייקת?

3) באיזה מערכת הפעלה אתה עובד? איפה R מותקן?

4) מהי תיקיית העבודה שלך? תריץ:
getwd()
ותשלח את הפלט.


בברכה,
טל



----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------



--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Amit Oc Amit Oc

unread,
Apr 12, 2013, 6:57:38 AM4/12/13
to israel-r-...@googlegroups.com
טל, 
פתרת לי את הבעיה.

הייתי צריך לשמור כמה אובייקטים, אז עשיתי
save(obj1,obj2,file="fileName") 
ואז עשיתי
load("fileName")
ועובד לי יופי.

תודה ,
עמית אוסי


בתאריך 12 באפריל 2013 13:28, מאת Tal Galili <tal.g...@gmail.com>:

Tal Galili

unread,
Apr 12, 2013, 7:38:27 AM4/12/13
to israel-r-...@googlegroups.com
בבקשה :)


----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------



2013/4/12 Amit Oc Amit Oc <amito...@gmail.com>
Reply all
Reply to author
Forward
0 new messages