Hi, I am having a problem with installing the dcast function in R 3.5.3 Here is the message that I am getting when trying to install it:> install.packages("dcast")Installing package into ?C:/Users/marie/Documents/R/win-library/3.5? (as ?lib? is unspecified) Warning message: package ?dcast? is not available (for R version 3.5.3) Marie Joe Kfoury [[alternative HTML version deleted]]
Hi, dcast() is a function, not a package, so R can't find it in the package archive. You need to install the package that contains it. Probably you want reshape2 install.packages("reshape2") Sarah On Thu, Mar 21, 2019 at 9:54 AM Marie-joe Kfoury <mariejoe.kfoury at hotmail.com> wrote:> > Hi, > > > I am having a problem with installing the dcast function in R 3.5.3 > > Here is the message that I am getting when trying to install it: > > > install.packages("dcast") > Installing package into ?C:/Users/marie/Documents/R/win-library/3.5? > (as ?lib? is unspecified) > Warning message: > package ?dcast? is not available (for R version 3.5.3) > > > > Marie Joe Kfoury > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Sarah Goslee (she/her) http://www.numberwright.com
Hi You shouldn't use HTML formating unless you want to surprise us with weird and messy email. function dcast is in data.table and/or in reshape2 packages. For both install.packages("data.table") install.packages("reshape2") followed by library(data.table) library(reshape2) should be enough to make function dcast available. Maybe you could spent some time reading R-intro docs. Cheers Petr> -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Marie-joe Kfoury > Sent: Thursday, March 21, 2019 9:28 AM > To: r-help at r-project.org > Subject: [R] Question regarding the dcast function > > Hi, > > > I am having a problem with installing the dcast function in R 3.5.3 > > Here is the message that I am getting when trying to install it: > > > install.packages("dcast") > Installing package into ?C:/Users/marie/Documents/R/win-library/3.5? > (as ?lib? is unspecified) > Warning message: > package ?dcast? is not available (for R version 3.5.3) > > > > Marie Joe Kfoury > > [[alternative HTML version deleted]]Osobn? ?daje: Informace o zpracov?n? a ochran? osobn?ch ?daj? obchodn?ch partner? PRECHEZA a.s. jsou zve?ejn?ny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner?s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/ D?v?rnost: Tento e-mail a jak?koliv k n?mu p?ipojen? dokumenty jsou d?v?rn? a podl?haj? tomuto pr?vn? z?vazn?mu prohl??en? o vylou?en? odpov?dnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/